From 3d52a73e3ae5b9d7f461ba7a44e7cf0628da2154 Mon Sep 17 00:00:00 2001 From: Andrew Titmuss Date: Tue, 14 Jun 2016 11:46:41 +1000 Subject: [PATCH] fixed refresh rate on OS X --- neofetch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neofetch b/neofetch index cad76935..9e19492c 100755 --- a/neofetch +++ b/neofetch @@ -1538,8 +1538,8 @@ getresolution () { awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')" fi - [[ "$refresh_rate" == "off" ]] && \ - resolution="${resolution// @ *([0-9])Hz}" + [[ "$refresh_rate" == "off" ]] || [[ "$resolution" =~ "@ 0Hz" ]] && \ + resolution="${resolution// @ *[0-9]Hz}" ;; "Windows")