summaryrefslogtreecommitdiff
path: root/passmenu
diff options
context:
space:
mode:
Diffstat (limited to 'passmenu')
-rwxr-xr-xpassmenu4
1 files changed, 3 insertions, 1 deletions
diff --git a/passmenu b/passmenu
index fd91178..e44be61 100755
--- a/passmenu
+++ b/passmenu
@@ -10,9 +10,11 @@ fi
if [[ -n $WAYLAND_DISPLAY ]]; then
barmenu=tofi
+ args=""
xdotool="ydotool type --file -"
elif [[ -n $DISPLAY ]]; then
barmenu=dmenu
+ args="-i -l 15 -r"
xdotool="xdotool type --clearmodifiers --file -"
else
echo "Error: No Wayland or X11 display detected" >&2
@@ -24,7 +26,7 @@ password_files=( "$prefix"/**/*.gpg )
password_files=( "${password_files[@]#"$prefix"/}" )
password_files=( "${password_files[@]%.gpg}" )
-password=$(printf '%s\n' "${password_files[@]}" | "$barmenu" "$@")
+password=$(printf '%s\n' "${password_files[@]}" | "$barmenu" $args "$@")
[[ -n $password ]] || exit