contrib/pa-rofi
#!/bin/sh # # prompt for a password via rofi # generate new password if it doesn't exist # then type the selected password via xdotool name=$(pa list | rofi -dmenu -i "$@") || exit { pa show "$name" || { printf y | pa add "$name" >/dev/null && pa show "$name"; }; } | head -n 1 | tr -d '\n' | xdotool type --clearmodifiers --file -