From 6a9ac01100ecca05d221bea096bb088b376579c1 Mon Sep 17 00:00:00 2001 From: Paul Ouellette Date: Wed, 3 Jul 2019 16:37:07 -0400 Subject: [PATCH] Make window selection example support floating windowns --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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