Created
May 26, 2021 21:42
-
-
Save mnakama/355acfd8311b3117b5cb2e5eb4e48ac1 to your computer and use it in GitHub Desktop.
dmenu script for choosing a password
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#export PASSWORD_STORE_DIR="$HOME/SpiderOak Hive/.password-store" | |
export PASSWORD_STORE_DIR="$HOME/.password-store" | |
cd $PASSWORD_STORE_DIR | |
PASS=`find * -name '*.gpg' | sed s/\.gpg// | dmenu -l 10` | |
[[ -n $PASS ]] || exit | |
#pass -c $PASS | |
pass $PASS | { read -r pass; printf %s "$pass"; } | xdotool type --clearmodifiers --delay 0 --file - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment