small pixel drawing of a pufferfish pa

add contrib/pa-bemenu
Jes Olson j3s@c3f.net
Tue, 21 Jun 2022 17:27:27 -0500
commit

8cd3e9bd33e62fda43e26fd3a5256473c16ae765

parent

5001039f425a5b71a81b5ac1392d7ee0827b8fa9

1 files changed, 15 insertions(+), 0 deletions(-)

jump to
A contrib/pa-bemenu

@@ -0,0 +1,15 @@

+#!/bin/sh +# +# prompt for a password via bemenu +# then type the selected password +# +# deps: +# - wtype +# - bemenu +# - pa + +cd "${PA_DIR:-$HOME/.local/share/pa}" +password_files="$(find * -type f | grep -v '/.git')" +password=$(printf '%s\n' "$password_files" | sed 's/.age//' | bemenu -b "$@") + +pa show "$password" | head -n 1 | tr -d '\n' | wtype -