small pixel drawing of a pufferfish pa

generate new password if it doesn't exist in menu scripts
arĉi arcxi@dismail.de
Wed, 26 Jun 2024 08:58:08 +0200
commit

b5a90a70f30a4f66bbb0f0a43a5a618181d87fdb

parent

34b148f585eea16498c80ad560f6713aeb226925

5 files changed, 15 insertions(+), 5 deletions(-)

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

@@ -1,7 +1,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" | head -n 1 | tr -d '\n' | wtype - +{ pa show "$name" || { printf y | pa add "$name" >/dev/null && pa show "$name"; }; } | + head -n 1 | tr -d '\n' | wtype -
M contrib/pa-dmenucontrib/pa-dmenu

@@ -1,7 +1,9 @@

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

@@ -1,7 +1,9 @@

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

@@ -1,7 +1,9 @@

#!/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 "$@") -pa show "$name" | head -n 1 | tr -d '\n' | xdotool type --clearmodifiers --file - +{ pa show "$name" || { printf y | pa add "$name" >/dev/null && pa show "$name"; }; } | + head -n 1 | tr -d '\n' | xdotool type --clearmodifiers --file -
M contrib/pa-wmenucontrib/pa-wmenu

@@ -1,7 +1,9 @@

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