summaryrefslogtreecommitdiff
path: root/scripts/Scripts/passmenu
diff options
context:
space:
mode:
authorJulian T <julian@jtle.dk>2019-12-16 13:21:13 +0100
committerJulian T <julian@jtle.dk>2019-12-16 13:26:20 +0100
commitee811e9ff30845d58830f57e9c232328e51638d6 (patch)
tree3d6b7f150679f44b136b3ec5a31469d912641591 /scripts/Scripts/passmenu
parent61f9cec189ea19265ab4124aee116292477d0e79 (diff)
Proper dmenu usage
Diffstat (limited to 'scripts/Scripts/passmenu')
-rw-r--r--scripts/Scripts/passmenu4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/Scripts/passmenu b/scripts/Scripts/passmenu
index e3cf4a8..be2d206 100644
--- a/scripts/Scripts/passmenu
+++ b/scripts/Scripts/passmenu
@@ -1,5 +1,7 @@
#!/usr/bin/env bash
+DMENU="rofi -dmenu"
+
shopt -s nullglob globstar
typeit=0
@@ -13,7 +15,7 @@ password_files=( "$prefix"/**/*.gpg )
password_files=( "${password_files[@]#"$prefix"/}" )
password_files=( "${password_files[@]%.gpg}" )
-password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@")
+password=$(printf '%s\n' "${password_files[@]}" | $DMENU -i "$@")
[[ -n $password ]] || exit