From 9139a1b136fa2b5adfcac0ac09a4f61aa1ee1ff4 Mon Sep 17 00:00:00 2001 From: Thomas Ulmer Date: Wed, 4 Feb 2026 14:24:16 -0800 Subject: full reorg --- config/sway/switch.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 config/sway/switch.sh (limited to 'config/sway/switch.sh') diff --git a/config/sway/switch.sh b/config/sway/switch.sh new file mode 100755 index 0000000..62751b8 --- /dev/null +++ b/config/sway/switch.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +a="$(swaymsg -t get_tree | jq '.. | objects | select(.type == "con") | select(.focused == true) | .marks | index("t") != null')" + +#echo $a +if [ $a = "true" ]; then + swaymsg '[con_mark="l"] focus' +else + swaymsg 'mark --add "l"; [con_mark="t"] focus' +fi + -- cgit v1.2.3