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

View File

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