made OS X resolution block smaller
This commit is contained in:
parent
9779e91672
commit
a0d409f15e
18
neofetch
18
neofetch
|
@ -1254,22 +1254,16 @@ getresolution () {
|
||||||
|
|
||||||
"Mac OS X")
|
"Mac OS X")
|
||||||
if type -p screenresolution >/dev/null 2>&1; then
|
if type -p screenresolution >/dev/null 2>&1; then
|
||||||
resolution=$(screenresolution get 2>&1 | awk '/Display/ {printf $6"Hz, "}')
|
resolution=$(screenresolution get 2>&1 | awk '/Display/ {printf $6 "Hz, "}')
|
||||||
resolution=${resolution//x??@/ @ }
|
resolution=${resolution//x??@/ @ }
|
||||||
[[ "$refresh_rate" == "off" ]] && resolution=${resolution// @ +([0-9])Hz}
|
|
||||||
|
|
||||||
else
|
else
|
||||||
case "$refresh_rate" in
|
resolution=$(system_profiler SPDisplaysDataType |\
|
||||||
"on")
|
awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')
|
||||||
resolution=$(system_profiler SPDisplaysDataType |\
|
|
||||||
awk '/Resolution:/ {printf $2"x"$4" @ "$6"Hz, "}')
|
|
||||||
;;
|
|
||||||
"off")
|
|
||||||
resolution=$(system_profiler SPDisplaysDataType |\
|
|
||||||
awk '/Resolution:/ {printf $2"x"$4", "}')
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
[[ "$refresh_rate" == "off" ]] && \
|
||||||
|
resolution=${resolution// @ +([0-9])Hz}
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"Windows")
|
"Windows")
|
||||||
|
|
Reference in New Issue