diff --git a/README.md b/README.md index 25d3b82..1b8566f 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ swaymsg -t get_outputs | jq -r '.[] | select(.active) | .rect | "\(.x),\(.y) \(. Select a window under Sway, using `swaymsg` and `jq`: ```sh -swaymsg -t get_tree | jq -r '.. | (.nodes? // empty)[] | select(.pid and .visible) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp +swaymsg -t get_tree | jq -r '.. | select(.pid? and .visible?) | .rect | "\(.x),\(.y) \(.width)x\(.height)"' | slurp ``` ## Contributing