From d27db84d35a2f049940aa81aa064f82849dcd7a0 Mon Sep 17 00:00:00 2001 From: Konstantin Koslowski Date: Thu, 4 Mar 2021 20:41:00 +0100 Subject: [PATCH] sway_search: replace with rg + wofi --- bin/sway_search | 3 +++ config | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100755 bin/sway_search 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.