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