diff --git a/sway/config b/sway/config index 4acd673..7370ffe 100644 --- a/sway/config +++ b/sway/config @@ -15,13 +15,12 @@ set $term kitty # Your preferred application launcher # Note: it's recommended that you pass the final command to sway -set $menu rofi -show run | xargs swaymsg exec +#set $menu rofi -show run | xargs swaymsg exec +set $menu rofi -m $(expr $(swaymsg -t get_tree | jq '.nodes | map([recurse(.nodes[]?, .floating_nodes[]?) | .focused] | any) | index(true)') - 1) -show drun -run-command 'swaymsg exec -- {cmd}' # gopass prompt bindsym $mod+backslash exec gopass ls --flat \ | rofi -dmenu -p pass \ | xargs --no-run-if-empty gopass show -c -# clipboard history -bindsym $mod+c exec rofi -modi "clipboard:greenclip print" -show clipboard -run-command '{cmd}' ################################################################################