better test for 0Hz
This commit is contained in:
parent
3d52a73e3a
commit
1d6f99b0d4
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -1538,7 +1538,7 @@ getresolution () {
|
|||
awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')"
|
||||
fi
|
||||
|
||||
[[ "$refresh_rate" == "off" ]] || [[ "$resolution" =~ "@ 0Hz" ]] && \
|
||||
[[ "$refresh_rate" == "off" ]] || [[ "${resolution// * @ }" == "0Hz" ]] && \
|
||||
resolution="${resolution// @ *[0-9]Hz}"
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in a new issue