summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-10-18 21:26:04 +0100
committerUrbain Vaes <urbain@vaes.uk>2015-10-18 21:26:04 +0100
commit0edd762ec5f0b33e02fb6473dfea4e6fed54c498 (patch)
treed783a802c368af598f00f0f8e6f89d0421a00145 /bin
parentfaddf59ec992776df9941dff2ae2b785562a9805 (diff)
Add script to obtain password
Diffstat (limited to 'bin')
-rwxr-xr-xbin/password5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/password b/bin/password
new file mode 100755
index 0000000..b0415e3
--- /dev/null
+++ b/bin/password
@@ -0,0 +1,5 @@
+#! /bin/bash
+PWD_DIR="$HOME/dotfiles/.passwords"
+PASSWORDS=$(locate "$PWD_DIR/**/*.gpg")
+TARGET=$(echo "${PASSWORDS//"$PWD_DIR/"/}" | dmenu -i -p "Decode password:")
+gpg --use-agent --quiet --batch -d $PWD_DIR/$TARGET | xclip -i