diff options
-rwxr-xr-x | bin/id | 5 | ||||
-rwxr-xr-x | bin/password | 5 |
2 files changed, 6 insertions, 4 deletions
@@ -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 |