summaryrefslogtreecommitdiff
path: root/bin/password
blob: e064e29113b72ef087c14ea63b263f674ec060e2 (plain)
1
2
3
4
5
#! /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