Fix refresh_rate output

This commit is contained in:
Dylan 2016-03-26 13:56:58 +11:00
parent f153e8d2e4
commit 70b59ac1ef
1 changed files with 1 additions and 1 deletions

View File

@ -1280,7 +1280,7 @@ getresolution () {
"Linux" | *"BSD") "Linux" | *"BSD")
if type -p xrandr >/dev/null 2>&1; then if type -p xrandr >/dev/null 2>&1; then
case "$refresh_rate" in 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 ", "}') ;; "off") resolution=$(xrandr --nograb --current | awk '/*/ {printf $1 ", "}') ;;
esac esac
resolution=${resolution//\*} resolution=${resolution//\*}