diff --git a/Tricks.md b/Tricks.md index ab77464..0f7a737 100644 --- a/Tricks.md +++ b/Tricks.md @@ -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