passmenu (234B)
1 #!/bin/sh 2 3 # types a dmenu selected password 4 # make sure gpg-agent is running 5 6 password=$(spm search . | cut -d '/' -f 5- | dmenu -i -p "Password:") || exit 0 7 8 xdotool type --clearmodifiers --delay 0 $(spm show "$password" | head -1)