From 0edd762ec5f0b33e02fb6473dfea4e6fed54c498 Mon Sep 17 00:00:00 2001 From: Urbain Vaes Date: Sun, 18 Oct 2015 21:26:04 +0100 Subject: Add script to obtain password --- bin/password | 5 +++++ 1 file changed, 5 insertions(+) create mode 100755 bin/password (limited to 'bin/password') 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 -- cgit v1.2.3