blob: b0415e3a14703e17340b546759e538a2bd5d07dc (
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:")
gpg --use-agent --quiet --batch -d $PWD_DIR/$TARGET | xclip -i
|