mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-12-13 20:22:11 +00:00
MacOS screenresolution: accepts output from stdout and stderr. Closes #662
This commit is contained in:
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
Block a user