exit menu scripts if name wasn't chosen
arĉi arcxi@dismail.de
Sat, 06 Jul 2024 14:09:06 +0200
5 files changed,
5 insertions(+),
5 deletions(-)
M
contrib/pa-fuzzel
→
contrib/pa-fuzzel
@@ -4,6 +4,6 @@ # 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 "$@") +name=$(pa list | fuzzel -dmenu "$@") || exit { pa show "$name" || { printf y | pa add "$name" >/dev/null && pa show "$name"; }; } | head -n 1 | tr -d '\n' | wtype -
M
contrib/pa-rofi
→
contrib/pa-rofi
@@ -4,6 +4,6 @@ # 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 "$@") +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 -