From ebddb712af13f562bc119038cbd8aa296e308309 Mon Sep 17 00:00:00 2001 From: Adam Gausmann Date: Sat, 2 Apr 2022 18:44:26 -0500 Subject: [PATCH] Add more wofi integrations --- templates/.config/sway/config | 3 ++- templates/bin/wofi-pass | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 templates/bin/wofi-pass 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"