resolution: Fix broken output. Closes #803
This commit is contained in:
parent
b757e32c91
commit
c108713b91
1 changed files with 2 additions and 1 deletions
3
neofetch
3
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
|
||||
|
|
Loading…
Reference in a new issue