Skip to content

Instantly share code, notes, and snippets.

@mnakama
Created May 26, 2021 21:42
Show Gist options
  • Save mnakama/355acfd8311b3117b5cb2e5eb4e48ac1 to your computer and use it in GitHub Desktop.
Save mnakama/355acfd8311b3117b5cb2e5eb4e48ac1 to your computer and use it in GitHub Desktop.
dmenu script for choosing a password
#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