summaryrefslogtreecommitdiff
path: root/passmenu
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-02-21 15:19:21 -0600
committerzachir <zachir@librem.one>2023-02-21 15:19:21 -0600
commitbacd538bbd462e2517a6853a4b33364d28847100 (patch)
tree69b7956b644b0463761c0282fb4bfcfed199e7d5 /passmenu
parent0495dd8fec75da78a21d2ea10b85d2b157c578c1 (diff)
add args to barmenu in passmenu
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