summaryrefslogtreecommitdiff
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
parentfaddf59ec992776df9941dff2ae2b785562a9805 (diff)
Add script to obtain password
-rw-r--r--.gitmodules3
m---------.passwords0
-rwxr-xr-xbin/password5
3 files changed, 8 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
index b713ac5..aa879dd 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -13,3 +13,6 @@
[submodule ".urxvt/ext"]
path = .urxvt/ext
url = https://github.com/muennich/urxvt-perls
+[submodule ".passwords"]
+ path = .passwords
+ url = https://github.com/uvaes/passwords
diff --git a/.passwords b/.passwords
new file mode 160000
+Subproject ebfe618e5197447046cb94996a1650d51d9bf40
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