From 72c39240811f1def43fca71de51566d206f7728d Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Thu, 21 Jan 2021 19:33:10 +0100 Subject: Update 2021-01-21T18:33:10Z --- bin/swx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bin/swx') diff --git a/bin/swx b/bin/swx index dfe852f..284e5c7 100755 --- a/bin/swx +++ b/bin/swx @@ -123,7 +123,9 @@ if [ -n "${rotate}" ]; then fi if [ -n "${autotile}" ]; then - case "$(swq current workspace | jq -r '.layout')" in + layout=$(swq current con | jq -r '.layout') + # swq current workspace | jq -r '.. | select(.type?=="con" and .name?==null) | .layout' + case "${layout}" in split*) if [ "$(swq current con | jq '.rect | .width > .height')" = "true" ]; then swaymsg splith -- cgit 1.4.1