mirror of
https://github.com/swaywm/sway.git
synced 2024-11-28 10:51:28 +00:00
Simplify jq usage to format current mode
parent
6ee45ed345
commit
7fba1358b6
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue