dotfiles/de/home/.config/sway/scripts/scratchpadmenu.sh
2024-07-18 01:13:12 -06:00

5 lines
226 B
Bash
Executable file

#!/bin/bash
selection=$(swaymsg -t get_tree | jq -r 'recurse(.nodes[]) | select(.name == "__i3_scratch").floating_nodes[].app_id' | wofi -i --dmenu -k /dev/null | cut -d. -f1)
swaymsg [app_id="${selection}"] scratchpad show