Simplify jq usage to format current mode

Jan Beich 2021-01-10 22:17:39 +00:00
parent 6ee45ed345
commit 7fba1358b6
1 changed files with 1 additions and 1 deletions

@ -1,6 +1,6 @@
# Get workspace dimensions
swaymsg -t get_outputs | jq -r '.[] | select(.focused) | (.current_mode.width | tostring) + "x" + (.current_mode.height | tostring)'
swaymsg -t get_outputs | jq -r '.. | select(.focused?) | .current_mode | "\(.width)x\(.height)"'
# Start a program on a specific workspace