mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-23 20:12:31 +00:00
Fix refresh_rate output
This commit is contained in:
2
neofetch
2
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//\*}
|
||||
|
||||
Reference in New Issue
Block a user