summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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