improved refresh_rate fix, now actually works on OS X...
This commit is contained in:
parent
3b4335583d
commit
cd51987f17
1 changed files with 9 additions and 2 deletions
11
neofetch
11
neofetch
|
@ -1538,8 +1538,15 @@ 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" ] || [ "${resolution// * @ }" == "0Hz" ]; then
|
||||||
resolution="${resolution// @ *[0-9]Hz}"
|
IFS=","
|
||||||
|
for res in $resolution; do
|
||||||
|
res="${res// @ *[0-9]Hz}"
|
||||||
|
newres="$newres, $res"
|
||||||
|
done
|
||||||
|
unset IFS
|
||||||
|
resolution="${newres:2}"
|
||||||
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
|
|
Loading…
Reference in a new issue