mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-10-04 09:08:38 +00:00
resolution: Fix broken output. Closes #803
This commit is contained in:
3
neofetch
3
neofetch
@@ -1577,7 +1577,8 @@ get_resolution() {
|
|||||||
|
|
||||||
"off")
|
"off")
|
||||||
resolution="$(xrandr --nograb --current |\
|
resolution="$(xrandr --nograb --current |\
|
||||||
awk -F 'connected |\\+' '/ connected/ {printf $2 ", "}')"
|
awk -F 'connected |\\+|\\(' \
|
||||||
|
'/ connected/ && $2 {printf $2 ", "}')"
|
||||||
resolution="${resolution/primary }"
|
resolution="${resolution/primary }"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
Reference in New Issue
Block a user