mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-22 19:49:54 +00:00
better test for 0Hz
This commit is contained in:
2
neofetch
2
neofetch
@@ -1538,7 +1538,7 @@ getresolution () {
|
|||||||
awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')"
|
awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[[ "$refresh_rate" == "off" ]] || [[ "$resolution" =~ "@ 0Hz" ]] && \
|
[[ "$refresh_rate" == "off" ]] || [[ "${resolution// * @ }" == "0Hz" ]] && \
|
||||||
resolution="${resolution// @ *[0-9]Hz}"
|
resolution="${resolution// @ *[0-9]Hz}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user