aboutsummaryrefslogtreecommitdiff
path: root/bin/dmenu_pass.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bin/dmenu_pass.sh')
-rwxr-xr-xbin/dmenu_pass.sh18
1 files changed, 0 insertions, 18 deletions
diff --git a/bin/dmenu_pass.sh b/bin/dmenu_pass.sh
deleted file mode 100755
index 2969cd16..00000000
--- a/bin/dmenu_pass.sh
+++ /dev/null
@@ -1,18 +0,0 @@
-# Pick and type out a pass(1) password with dmenu(1) and xdotool(1)
-self=dmenu_pass
-cd -- "${PASSWORD_STORE_DIR:-"$HOME"/.password-store}" || exit
-# shellcheck disable=SC2016
-name=$(
- find . -name \*.gpg ! -type d |
- sed -e 's_^\./__' -e 's_\.gpg$__' |
- LC_ALL=C sort -f |
- dmenu
-)
-[ -n "$name" ] || exit
-password=$(pass show -- "$name" | head -n 1) || exit
-[ -n "$password" ] || exit
-printf %s "$password" | xdotool type --clearmodifiers --file - \
- || exit
-notify-send --app-name="$self" -- \
- "Password typed" \
- "$name"