resolution: Fix output when monitor is turned off.

parent f4a83d60
...@@ -2905,7 +2905,7 @@ get_resolution() { ...@@ -2905,7 +2905,7 @@ get_resolution() {
"off") "off")
resolution="$(xrandr --nograb --current |\ resolution="$(xrandr --nograb --current |\
awk -F 'connected |\\+|\\(' \ awk -F 'connected |\\+|\\(' \
'/ connected/ && $2 {printf $2 ", "}')" '/ connected.*[0-9]+x[0-9]+\+/ && $2 {printf $2 ", "}')"
resolution="${resolution/primary, }" resolution="${resolution/primary, }"
resolution="${resolution/primary }" resolution="${resolution/primary }"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment