MacOS screenresolution: accepts output from stdout and stderr. Closes #662
This commit is contained in:
parent
98061ca6c0
commit
707601bbf7
2
neofetch
2
neofetch
|
@ -1391,7 +1391,7 @@ get_resolution() {
|
|||
|
||||
"Mac OS X")
|
||||
if type -p screenresolution >/dev/null; then
|
||||
resolution="$(screenresolution get | awk '/Display/ {printf $6 "Hz, "}')"
|
||||
resolution="$(screenresolution get 2>&1 | awk '/Display/ {printf $6 "Hz, "}')"
|
||||
resolution="${resolution//x??@/ @ }"
|
||||
|
||||
else
|
||||
|
|
Reference in New Issue