.dotfiles/.scripts/switcher.fish

5 lines
209 B
Fish
Raw Normal View History

2024-10-23 00:08:59 +03:00
#!/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