diff options
author | zachir <zachir@librem.one> | 2023-02-21 15:19:21 -0600 |
---|---|---|
committer | zachir <zachir@librem.one> | 2023-02-21 15:19:21 -0600 |
commit | bacd538bbd462e2517a6853a4b33364d28847100 (patch) | |
tree | 69b7956b644b0463761c0282fb4bfcfed199e7d5 /passmenu | |
parent | 0495dd8fec75da78a21d2ea10b85d2b157c578c1 (diff) |
add args to barmenu in passmenu
Diffstat (limited to 'passmenu')
-rwxr-xr-x | passmenu | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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 |