diff --git a/neofetch b/neofetch index bc60eeba..6ef60e80 100755 --- a/neofetch +++ b/neofetch @@ -1495,7 +1495,7 @@ get_resolution() { case "$refresh_rate" in "on") resolution="$(xrandr --nograb --current | awk 'match($0,/[0-9]*\.[0-9]*\*/) {printf $1 " @ " substr($0,RSTART,RLENGTH) "Hz, "}')" ;; "off") - resolution="$(xrandr --nograb --current | awk -F 'connected |+' '/ connected/ {printf $2 ", "}')" + resolution="$(xrandr --nograb --current | awk -F 'connected |\\+' '/ connected/ {printf $2 ", "}')" resolution="${resolution/primary }" ;; esac