New passmenu option to type username and copy password

John Gliksberg jg.trosh at gmail.com
Fri Apr 14 23:04:14 CEST 2017


Hello all, first time posting here,


Here are three commits related to contrib/dmenu/passmenu.

To begin, I have removed the useless and illegal dmenu argument.

The main point is adding a --type-and-copy option.
This allows getting output from both the selected entry
and resulting password.
For example, with an entry of "website/username", calling passmenu
with --type-and-copy makes it type "username" and copy the password
to the clipboard.
This integrates well with logins that require typing both usernames
and passwords with unpredictable form layouts.

The last commit removes bash dependency for this script.
It was tested with dash and zsh.
It is unrelated to the two first commits and not really a big deal;
I just figured that passmenu was nicer without bashisms.

P.S. : Of course, the patches can be applied with git am.


Best,
-- 
John Makepeace
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-passmenu-Don-t-pass-any-argument-to-dmenu.patch
Type: application/octet-stream
Size: 774 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20170414/422152f4/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-passmenu-Add-type-and-copy-argument.patch
Type: application/octet-stream
Size: 2188 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20170414/422152f4/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-passmenu-Remove-bashisms.patch
Type: application/octet-stream
Size: 1823 bytes
Desc: not available
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20170414/422152f4/attachment-0002.obj>


More information about the Password-Store mailing list