From f19f5df73ac0fdc3efa14649c4b646bcc4de84f4 Mon Sep 17 00:00:00 2001 From: Ryan Kavanagh Date: Thu, 21 Aug 2025 13:21:45 -0400 Subject: Move ~/bin to ~/.local/bin --- dot_local/bin/executable_wofi-window-switcher | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 dot_local/bin/executable_wofi-window-switcher (limited to 'dot_local/bin/executable_wofi-window-switcher') diff --git a/dot_local/bin/executable_wofi-window-switcher b/dot_local/bin/executable_wofi-window-switcher new file mode 100644 index 0000000..2344093 --- /dev/null +++ b/dot_local/bin/executable_wofi-window-switcher @@ -0,0 +1,12 @@ +#!/bin/sh +# + +swaymsg -t get_tree | \ + jq -r '.nodes[].nodes[] | + if .nodes then [recurse(.nodes[])] else [] end + .floating_nodes | + .[] | select(.nodes==[]) | ((.id | tostring) + " [" + (.app_id // .window_properties.class) + "] " + .name)' | \ + grep -v __i3_scratch | + wofi -d -i | { + read -r id name + swaymsg "[con_id=$id]" focus +} -- cgit v1.2.3