From c108713b9153874b95c689cada38c156c53050bf Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sun, 13 Aug 2017 20:01:20 +1000 Subject: [PATCH] resolution: Fix broken output. Closes #803 --- neofetch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/neofetch b/neofetch index b5bc78e8..e3632240 100755 --- a/neofetch +++ b/neofetch @@ -1577,7 +1577,8 @@ get_resolution() { "off") resolution="$(xrandr --nograb --current |\ - awk -F 'connected |\\+' '/ connected/ {printf $2 ", "}')" + awk -F 'connected |\\+|\\(' \ + '/ connected/ && $2 {printf $2 ", "}')" resolution="${resolution/primary }" ;; esac