From bacd538bbd462e2517a6853a4b33364d28847100 Mon Sep 17 00:00:00 2001 From: zachir Date: Tue, 21 Feb 2023 15:19:21 -0600 Subject: add args to barmenu in passmenu --- passmenu | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'passmenu') 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 -- cgit v1.2.3