Merge pull request #287 from iandrewt/refresh_osx-2
improved refresh_rate fix, now actually works on OS X...
This commit is contained in:
commit
5f2f1aaeae
1 changed files with 7 additions and 2 deletions
9
neofetch
9
neofetch
|
@ -1538,8 +1538,13 @@ getresolution () {
|
||||||
awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')"
|
awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ "$refresh_rate" == "off" ] || [ "${resolution// * @ }" == "0Hz" ] && \
|
if [ "$refresh_rate" == "off" ]; then
|
||||||
resolution="${resolution// @ *[0-9]Hz}"
|
resolution="${resolution// @ [0-9][0-9]Hz}"
|
||||||
|
resolution="${resolution// @ [0-9][0-9][0-9]Hz}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
[[ "$resolution" =~ "0Hz" ]] && \
|
||||||
|
resolution="${resolution// @ 0Hz}"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
|
|
Loading…
Reference in a new issue