summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZachIR <zachir@librem.one>2025-07-15 22:34:55 -0500
committerZachIR <zachir@librem.one>2025-07-15 22:34:55 -0500
commit3922cf0828f0a989f3d24b7505605d53d0379d5a (patch)
tree101aa615d986469eb3a46f1405488ddf91fc45c6
parentb6f04b6d497ad01bcd26ff9134a6e3416b116482 (diff)
Remove barmenu syntax from passmenu
-rwxr-xr-xpassmenu6
1 files changed, 1 insertions, 5 deletions
diff --git a/passmenu b/passmenu
index a5b5ff9..f31c832 100755
--- a/passmenu
+++ b/passmenu
@@ -9,12 +9,8 @@ if [[ $1 == "--type" ]]; then
fi
if [[ -n $WAYLAND_DISPLAY ]]; then
- barmenu=tofi
- args="-c $HOME/.config/tofi/themes/dmenu_vertical"
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
@@ -26,7 +22,7 @@ password_files=( "$prefix"/**/*.gpg )
password_files=( "${password_files[@]#"$prefix"/}" )
password_files=( "${password_files[@]%.gpg}" )
-password=$(printf '%s\n' "${password_files[@]}" | "$barmenu" $args "$@")
+password=$(printf '%s\n' "${password_files[@]}" | dmenu -i -l 15 -r "$@")
[[ -n $password ]] || exit