passmenu: optionally type username as well

Matthew Snider matt.snider at
Sun Jul 23 16:03:00 CEST 2017


I've just recently started using pass and more specifically passmenu, and am very pleased with it :-)

The main feature I found that was immediately missing when switching over from keepassx, is the ability to autotype a username/password combination. I read through the mailing list archives and found this feature was already attempted here:<>

It doesn't seem like there was any response to this, but arbitrarily taking the second line doesn't seem ideal to me. I think my implementation is an improvement, because it leverages the suggested file format of "key: value" pairs after the first line.

In the included patch you will see that I've just added a --userfield flag which can be used as follows:

passmenu --type --userfield username [dmenu arguments...]

This corresponds to files which look like:


username: matt.snider

I personally use this by binding $mod+p to the regular passmenu invocation, and $mod+Shift+p to the invocation using --type and --userfield. This has been working very well for me.

Please let me know what you think and if you have some feedback.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-passmenu-type-usernames.patch
Type: text/x-patch
Size: 2485 bytes
Desc: 0001-passmenu-type-usernames.patch
URL: <>

More information about the Password-Store mailing list