neofetch: Fix resolution issue. Closes #1347

This commit is contained in:
Dylan Araps 2020-01-23 01:20:01 +02:00
parent f5263176dd
commit 6ae64c5990
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 2 additions and 0 deletions

View File

@ -2809,6 +2809,8 @@ get_resolution() {
resolution="$(xrandr --nograb --current |\
awk -F 'connected |\\+|\\(' \
'/ connected/ && $2 {printf $2 ", "}')"
resolution="${resolution/primary, }"
resolution="${resolution/primary }"
;;
esac