From e1e48ca6bc2a2812042fddc672aca7571063cf52 Mon Sep 17 00:00:00 2001 From: Greg Date: Wed, 23 Oct 2024 00:08:59 +0300 Subject: [PATCH] switcher --- .scripts/switcher.fish | 4 ++++ 1 file changed, 4 insertions(+) create mode 100755 .scripts/switcher.fish 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 +