aboutsummaryrefslogtreecommitdiffhomepage
path: root/X11/rofi/pass.edit
diff options
context:
space:
mode:
Diffstat (limited to 'X11/rofi/pass.edit')
-rwxr-xr-xX11/rofi/pass.edit7
1 files changed, 3 insertions, 4 deletions
diff --git a/X11/rofi/pass.edit b/X11/rofi/pass.edit
index fb6ade9..428564d 100755
--- a/X11/rofi/pass.edit
+++ b/X11/rofi/pass.edit
@@ -1,6 +1,5 @@
1#! /bin/sh 1#! /bin/sh
2 2
3ROFI_ARGS=( '-font' 'Hack 22' )
4ENTRIES="$(find ~/.password-store -name '*gpg' -printf %P\\n | sed 's/.gpg$//')" 3ENTRIES="$(find ~/.password-store -name '*gpg' -printf %P\\n | sed 's/.gpg$//')"
5 4
6# Give rofi available passwords and exit 5# Give rofi available passwords and exit
@@ -15,8 +14,8 @@ fi
15# If password doesn't exist, just quit 14# If password doesn't exist, just quit
16<<<"$ENTRIES" grep -q $1 || exit 0 15<<<"$ENTRIES" grep -q $1 || exit 0
17 16
18# Use alacritty to edit password 17# Use detected terminal emulator to edit password
19coproc ( 18coproc (
20 alacritty -e pass edit $1 && pass $1 --clip 19 rofi-sensible-terminal -e pass edit $1 && pass $1 --clip
21 rofi "${ROFI_ARGS[@]}" -e "Copied: $1" 20 rofi -e "Copied: $1"
22) 21)