[pass] xdotool dmenu

Ryan Delaney ryan.delaney at gmail.com
Fri Jun 27 23:43:42 CEST 2014


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
ryan.delaney at gmail.com
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20140627/962a8741/attachment.asc>


More information about the Password-Store mailing list