summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorUrbain Vaes <urbain@vaes.uk>2015-11-08 20:30:17 +0000
committerUrbain Vaes <urbain@vaes.uk>2015-11-08 20:30:17 +0000
commitec6cc2021dc9bd5f9a33194ba1057705243ba06d (patch)
tree36c51cbd7c86225bd9bb75ebfef1a482165bcdd2 /bin
parent4a5e7f55748d66178807b38ee1bfcae3e7dcb1d0 (diff)
Use passmenu instead of custom script
Diffstat (limited to 'bin')
-rwxr-xr-xbin/id5
-rwxr-xr-xbin/password5
2 files changed, 6 insertions, 4 deletions
diff --git a/bin/id b/bin/id
new file mode 100755
index 0000000..3be501a
--- /dev/null
+++ b/bin/id
@@ -0,0 +1,5 @@
+#! /bin/bash
+PWD_DIR="$HOME/dotfiles/.passwords"
+PASSWORDS=$(locate "$PWD_DIR/**/*.gpg")
+TARGET=$(echo "${PASSWORDS//"$PWD_DIR/"/}" | dmenu -i -p "Get identifier for:")
+basename $TARGET .gpg | xclip -i
diff --git a/bin/password b/bin/password
index e064e29..065672b 100755
--- a/bin/password
+++ b/bin/password
@@ -1,5 +1,2 @@
#! /bin/bash
-PWD_DIR="$HOME/dotfiles/.passwords"
-PASSWORDS=$(locate "$PWD_DIR/**/*.gpg")
-TARGET=$(echo "${PASSWORDS//"$PWD_DIR/"/}" | dmenu -i -p "Decode password:")
-gpg2 --use-agent --quiet --batch -d $PWD_DIR/$TARGET | xclip -i
+passmenu