Skip to content

Instantly share code, notes, and snippets.

@mnakama
mnakama / pass_qr_chooser
Created May 26, 2021
password dmenu script for TOTP codes.
View pass_qr_chooser
#export PASSWORD_STORE_DIR="$HOME/SpiderOak Hive/.password-store"
export PASSWORD_STORE_DIR="$HOME/.password-store"
cd $PASSWORD_STORE_DIR
PASS=`find * -name '*otp.gpg' | sed s/\.gpg// | dmenu -l 10`
[[ -n $PASS ]] || exit
#pass -c $PASS
pass otp $PASS | { read -r pass; printf %s "$pass"; } | xdotool type --clearmodifiers --delay 0 --file -