blob: 7dad85de7b3e10d15f381e9fc71583898b05301c (
plain)
1
2
3
4
5
6
|
#! /bin/bash
PWD_DIR="$HOME/.password-store"
[[ ! -z $(readlink ${PWD_DIR}) ]] && PWD_DIR=$(readlink ${PWD_DIR})
PASSWORDS=$(locate "${PWD_DIR}/**/*.gpg")
TARGET=$(echo "${PASSWORDS//"$PWD_DIR/"/}" | dmenu -i -p "Get identifier for:")
basename $TARGET .gpg | xclip -i
|