From 70b59ac1ef8ca1160d68fa9ca3af52d1123924a1 Mon Sep 17 00:00:00 2001 From: Dylan Date: Sat, 26 Mar 2016 13:56:58 +1100 Subject: [PATCH] Fix refresh_rate output --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 35785032..8bee9eed 100755 --- a/neofetch +++ b/neofetch @@ -1280,7 +1280,7 @@ getresolution () { "Linux" | *"BSD") if type -p xrandr >/dev/null 2>&1; then case "$refresh_rate" in - "on") resolution=$(xrandr --nograb --current | awk 'match($0,/[0-0]{2,3}.[0-9]{2}\*/) {printf $1 " @ " substr($0,RSTART,RLENGTH) "Hz, "}') ;; + "on") resolution=$(xrandr --nograb --current | awk 'match($0,/[0-9]{2,3}.[0-9]{2}\*/) {printf $1 " @ " substr($0,RSTART,RLENGTH) "Hz, "}') ;; "off") resolution=$(xrandr --nograb --current | awk '/*/ {printf $1 ", "}') ;; esac resolution=${resolution//\*}