mirror of
https://github.com/dylanaraps/neofetch.git
synced 2025-02-20 11:23:39 +08:00
resolution: Fix output when monitor is turned off.
This commit is contained in:
parent
f4a83d604f
commit
0e448167c0
2
neofetch
2
neofetch
@ -2905,7 +2905,7 @@ get_resolution() {
|
||||
"off")
|
||||
resolution="$(xrandr --nograb --current |\
|
||||
awk -F 'connected |\\+|\\(' \
|
||||
'/ connected/ && $2 {printf $2 ", "}')"
|
||||
'/ connected.*[0-9]+x[0-9]+\+/ && $2 {printf $2 ", "}')"
|
||||
|
||||
resolution="${resolution/primary, }"
|
||||
resolution="${resolution/primary }"
|
||||
|
Loading…
x
Reference in New Issue
Block a user