diff --git a/de/home/.config/sway/config.d/keys_scratchpad b/de/home/.config/sway/config.d/keys_scratchpad index b24dabb..0f59b1b 100644 --- a/de/home/.config/sway/config.d/keys_scratchpad +++ b/de/home/.config/sway/config.d/keys_scratchpad @@ -9,5 +9,8 @@ # Cycle Scratchpad bindsym $mod+minus scratchpad show +# Scratchpad Menu + bindsym $mod+equal exec '$HOME/.config/sway/scripts/scratchpadmenu.sh' + # sticky bindsym $mod+Shift+equal floating enable, sticky enable diff --git a/de/home/.config/sway/scripts/scratchpadmenu.sh b/de/home/.config/sway/scripts/scratchpadmenu.sh new file mode 100755 index 0000000..8298d5e --- /dev/null +++ b/de/home/.config/sway/scripts/scratchpadmenu.sh @@ -0,0 +1,5 @@ +#!/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