mirror of
https://github.com/swaywm/sway.git
synced 2024-11-24 17:01:29 +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