Commit 5f2f1aae authored by Dylan Araps's avatar Dylan Araps Committed by GitHub

Merge pull request #287 from iandrewt/refresh_osx-2

improved refresh_rate fix, now actually works on OS X...
parents 0840ef24 df1e73a6
......@@ -1538,8 +1538,13 @@ getresolution () {
awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')"
fi
[ "$refresh_rate" == "off" ] || [ "${resolution// * @ }" == "0Hz" ] && \
resolution="${resolution// @ *[0-9]Hz}"
if [ "$refresh_rate" == "off" ]; then
resolution="${resolution// @ [0-9][0-9]Hz}"
resolution="${resolution// @ [0-9][0-9][0-9]Hz}"
fi
[[ "$resolution" =~ "0Hz" ]] && \
resolution="${resolution// @ 0Hz}"
;;
"Windows")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment