small pixel drawing of a pufferfish pa

contrib/pa-bemenu

1 2 3 4 5 6 7 8 9
#!/bin/sh
#
# prompt for a password via bemenu
# generate new password if it doesn't exist
# then type the selected password via wtype

name=$(pa list | bemenu -c -W 0.2 -l 20 "$@")
{ pa show "$name" || { printf y | pa add "$name" >/dev/null && pa show "$name"; }; } |
    head -n 1 | tr -d '\n' | wtype -