MacOS screenresolution: accepts output from stdout and stderr. Closes #662
This commit is contained in:
parent
98061ca6c0
commit
707601bbf7
1 changed files with 1 additions and 1 deletions
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
|
||||
|
|
Loading…
Reference in a new issue