Nice work. I've been working on something similar, though I haven't integrated dmenu yet. This gave me some ideas. :)
One question. I've been having issues with passwords that contain non-alphanumeric characters: xdotool seems to simply skip them rather than type them, unless given an xkeysym string. Have you encountered that issue? Any workaround? https://github.com/rpdelaney/xkeypass -- Regards, Ryan Delaney [email protected] 4096R/B63436F1C9E7771B On Fri, Jun 27, 2014 at 09:46:49PM +0200, Christoph Egger wrote: > Ahoi! > > I've built a NIH version of the dmenu script with one -- in my opinion > quite important -- difference: Instead of using the clipboard it just > use `xdotool` to actually type the password. I've attached the script if > someone's interested. > > Christoph > > #!/bin/bash > > list_passwords() { > basedir=~/.password-store/ > passwords=( ~/.password-store/**/*.gpg ~/.password-store/*.gpg ) > for password in "${passwords[@]}" > do > filename="${password#$basedir}" > filename="${filename%.gpg}" > echo $filename > done > } > > xdotool_command() { > echo -n "type " > pass "$1" > } > > selected_password="$(list_passwords 2>/dev/null| dmenu)" > > echo $selected_password > if [ -n "$selected_password" ] > then > xdotool_command "$selected_password" | xdotool - > fi
pgpknzv5GGrmx.pgp
Description: PGP signature
_______________________________________________ Password-Store mailing list [email protected] http://lists.zx2c4.com/mailman/listinfo/password-store
