mirror of
https://github.com/dylanaraps/neofetch.git
synced 2026-01-01 05:06:09 +00:00
added check for whether user wants refresh rate for linux
This commit is contained in:
2
neofetch
2
neofetch
@@ -1273,7 +1273,7 @@ getsong () {
|
||||
getresolution () {
|
||||
case "$os" in
|
||||
"Linux" | *"BSD")
|
||||
if type -p xrandr >/dev/null 2>&1; then
|
||||
if type -p xrandr >/dev/null 2>&1 && [ "$refresh_rate" == "on" ]; then
|
||||
resolution=$(xrandr --nograb --current | awk 'match($0,/[0-0]{2,3}.[0-9]{2}\*/) {printf $1 " @ " substr($0,RSTART,RLENGTH) "Hz, "}')
|
||||
resolution=${resolution//\*}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user