Commit c108713b authored by Dylan Araps's avatar Dylan Araps

resolution: Fix broken output. Closes #803

parent b757e32c
......@@ -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
......
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