From 707601bbf739943afac75022cc18e981a501aa33 Mon Sep 17 00:00:00 2001 From: Eliezio Oliveira Date: Sat, 4 Mar 2017 20:30:14 -0300 Subject: [PATCH] MacOS screenresolution: accepts output from stdout and stderr. Closes #662 --- neofetch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/neofetch b/neofetch index 8a8aa531..b63788aa 100755 --- a/neofetch +++ b/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