diff options
| author | Robert Günzler <r@gnzler.io> | 2021-01-21 19:33:10 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-01-21 19:40:20 +0100 |
| commit | 72c39240811f1def43fca71de51566d206f7728d (patch) | |
| tree | a33aa1331fc55b587a243f64ef94d781df40a8ae /bin/swx | |
| parent | 0762801ed9627021e732cdeb225a737f44e3df42 (diff) | |
Update 2021-01-21T18:33:10Z
Diffstat (limited to 'bin/swx')
| -rwxr-xr-x | bin/swx | 4 |
1 files changed, 3 insertions, 1 deletions
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 |