small pixel drawing of a pufferfish pa

add pa-wmenu (#19)

arĉi arcxi@dismail.de
Sun, 16 Jun 2024 19:45:06 +0200
commit

ab1fc366b107d9230945860e9581742ae1a318ec

parent

69b2ec82e262214ee66ed505a481430e9712ad6f

5 files changed, 24 insertions(+), 30 deletions(-)

jump to
M contrib/pa-bemenucontrib/pa-bemenu

@@ -1,15 +1,7 @@

#!/bin/sh # # prompt for a password via bemenu -# then type the selected password -# -# deps: -# - wtype -# - bemenu -# - pa - -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//' | bemenu -c -W 0.2 -l 20 "$@") +# then type the selected password via wtype -pa show "$password" | head -n 1 | tr -d '\n' | wtype - +name=$(pa list | bemenu -c -W 0.2 -l 20 "$@") +pa show "$name" | head -n 1 | tr -d '\n' | wtype -
M contrib/pa-dmenucontrib/pa-dmenu

@@ -1,8 +1,7 @@

#!/bin/sh +# +# prompt for a password via dmenu +# 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//' | dmenu "$@") - -pa show "$password" | head -n 1 | - xdotool type --clearmodifiers --file - +name=$(pa list | dmenu "$@") +pa show "$name" | head -n 1 | tr -d '\n' | xdotool type --clearmodifiers --file -
M contrib/pa-fuzzelcontrib/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-roficontrib/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 -
A contrib/pa-wmenu

@@ -0,0 +1,7 @@

+#!/bin/sh +# +# prompt for a password via wmenu +# then type the selected password via wtype + +name=$(pa list | wmenu "$@") +pa show "$name" | head -n 1 | tr -d '\n' | wtype -