aboutsummaryrefslogtreecommitdiffhomepage
path: root/X11/rofi/pass.edit
diff options
context:
space:
mode:
Diffstat (limited to 'X11/rofi/pass.edit')
-rwxr-xr-xX11/rofi/pass.edit12
1 files changed, 6 insertions, 6 deletions
diff --git a/X11/rofi/pass.edit b/X11/rofi/pass.edit
index 66fba6b..2c0eeea 100755
--- a/X11/rofi/pass.edit
+++ b/X11/rofi/pass.edit
@@ -4,17 +4,17 @@ ENTRIES="$(find ~/.password-store -name '*gpg' -printf %P\\n | sed 's/.gpg$//')"
4 4
5# Give rofi available passwords and exit 5# Give rofi available passwords and exit
6if [ $# -eq 0 ]; then 6if [ $# -eq 0 ]; then
7 # Specify rofi prompt as 'Edit' 7 # Specify rofi prompt as 'Edit'
8 echo -e "\0prompt\x1fEdit" 8 echo -e "\0prompt\x1fEdit"
9 9
10 echo "$ENTRIES" 10 echo "$ENTRIES"
11 exit 0 11 exit 0
12fi 12fi
13 13
14# If password doesn't exist, just quit 14# If password doesn't exist, just quit
15<<<"$ENTRIES" grep -q $1 || exit 0 15<<<"$ENTRIES" grep -q $1 || exit 0
16 16
17# Use detected terminal emulator to edit password 17# Use detected terminal emulator to edit password
18coproc ( 18coproc (
19 alacritty -e pass edit $1 && $(dirname $0)/pass.get $1 19 $terminal -e pass edit $1 && $(dirname $0)/pass.get $1
20) 20)