sway_search: replace with rg + wofi

This commit is contained in:
Konstantin Koslowski 2021-03-04 20:41:00 +01:00
parent b0c05d7aa4
commit d27db84d35
2 changed files with 5 additions and 2 deletions

3
bin/sway_search Executable file
View file

@ -0,0 +1,3 @@
#!/bin/bash
xdg-open "$(rg --no-messages --files $HOME -g '!{*.zip,*.rar,*.gz}' | \
wofi --dmenu --insensitive --prompt 'find')"

4
config
View file

@ -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.