diff --git a/templates/.config/sway/config b/templates/.config/sway/config index c0c9f95..d789942 100644 --- a/templates/.config/sway/config +++ b/templates/.config/sway/config @@ -59,7 +59,8 @@ bindsym $mod+Shift+q kill bindsym $mod+Shift+p exec swaylock -c 000000 bindsym $mod+d exec wofi --show run -bindsym $mod+p exec passmenu +bindsym $mod+Shift+d exec wofi --show drun +bindsym $mod+p exec wofi-pass bindsym $mod+Return exec ${host.get('terminal', 'alacritty')} bindsym $mod+$kleft focus left diff --git a/templates/bin/wofi-pass b/templates/bin/wofi-pass new file mode 100755 index 0000000..d2ff723 --- /dev/null +++ b/templates/bin/wofi-pass @@ -0,0 +1,8 @@ +#!/bin/sh + +PASSWORD_STORE="$HOME/.password-store" + +cd "$PASSWORD_STORE" || exit 1 +passwords="$(find . -name '*.gpg' | sed -nr 's/^\.\/(.*)\.gpg$/\1/p')" +selected="$(echo "$passwords" | wofi --dmenu || exit)" +pass -c "$selected"