diff --git a/bin/sway_search b/bin/sway_search new file mode 100755 index 0000000..1761b08 --- /dev/null +++ b/bin/sway_search @@ -0,0 +1,3 @@ +#!/bin/bash +xdg-open "$(rg --no-messages --files $HOME -g '!{*.zip,*.rar,*.gz}' | \ + wofi --dmenu --insensitive --prompt 'find')" diff --git a/config b/config index b5aca11..d929417 100644 --- a/config +++ b/config @@ -26,7 +26,7 @@ set $font Cascadia Code PL Regular 10 # Your preferred application launcher set $menu wofi --show drun --prompt applications -set $files termite -t fzf -e \"fzf --bind 'return:execute(nohup xdg-open {} &> /dev/null &)+abort'\" +set $search_cmd $HOME/.config/sway/bin/sway_search # @@ -93,7 +93,7 @@ bindsym --release button3 kill # Start your launcher bindsym $mod+r exec $menu -bindsym $mod+Shift+r exec $files +bindsym $mod+Shift+r exec $search_cmd # Drag floating windows by holding down $mod and left mouse button. # Resize them with right mouse button + $mod.