diff --git a/.scripts/switcher.fish b/.scripts/switcher.fish new file mode 100755 index 0000000..e42baae --- /dev/null +++ b/.scripts/switcher.fish @@ -0,0 +1,4 @@ +#!/usr/bin/fish + +swaymsg -t get_tree -r | jq -r '.. | select(.app_id?) | (.pid|tostring) + " " + .app_id + " " + .name' | fzf --with-nth 2.. | awk '{print $1}' | xargs printf "[pid=%d] focus" | xargs swaymsg +