add pa-wmenu (#19)
arĉi arcxi@dismail.de
Sun, 16 Jun 2024 19:45:06 +0200
5 files changed,
24 insertions(+),
30 deletions(-)
M
contrib/pa-fuzzel
→
contrib/pa-fuzzel
@@ -1,10 +1,7 @@
#!/bin/sh # -# prompt for a password, then type the selected password +# prompt for a password via fuzzel +# then type the selected password via wtype -cd "${PA_DIR:-$HOME/.local/share/pa/passwords}" -password_files="$(find * -type f | grep -v '/.git')" -password=$(printf '%s\n' "$password_files" | sed 's/.age//' | fuzzel -dmenu "$@") - -pa show "$password" | head -n 1 | - wtype - +name=$(pa list | fuzzel -dmenu "$@") +pa show "$name" | head -n 1 | tr -d '\n' | wtype -
M
contrib/pa-rofi
→
contrib/pa-rofi
@@ -1,8 +1,7 @@
#!/bin/sh +# +# prompt for a password via rofi +# then type the selected password via xdotool -cd "${PA_DIR:-$HOME/.local/share/pa/passwords}" -password_files="$(find * -type f | grep -v '/.git')" -password=$(printf '%s\n' "$password_files" | sed 's/.age//' | rofi -dmenu -i "$@") - -pa show "$password" | head -n 1 | - xdotool type --clearmodifiers --file - +name=$(pa list | rofi -dmenu -i "$@") +pa show "$name" | head -n 1 | tr -d '\n' | xdotool type --clearmodifiers --file -