[pass] [PATCH] Notify when password goes in/out of clipboard

Ajax aajaxx at gmail.com
Fri Apr 15 02:50:01 CEST 2016


Yes

More visibility fewer mistakes less uncertainty.

On Thu, Apr 14, 2016 at 11:30 PM, Emil Lundberg <lundberg.emil at gmail.com>
wrote:

> I can't look at your patch right now, but judging by the description I've
> made a series of similar patches myself [1]. My solution adds a callback
> hook to pass itself, which can then be used by passmenu to display a
> notification when the password is copied to the clipboard. It doesn't
> notify when the clipboard is reset, though, but the same approach could be
> used there.
>
> [1]: https://github.com/emlun/password-store/commits/passmenu-notify
>
> Is anyone else interested in this feature?
>
> /Emil
>
> On Wed, 13 Apr 2016, 16:31 Allan Odgaard, <lists+pass at simplit.com> wrote:
>
>> This seems to require a `notify-send` helper tool, correct?
>>
>> How about a `-w/--wait` option?
>>
>> Then for `notify-send` you could do:
>>
>>      pass -cw «password» && notify-send 'Password cleared from
>> clipboard' 'Clipboard reset…'
>>
>> I use `pass` with Alfred (OS X app launcher) and here Alfred allows
>> showing notifications (via the OS notification system), so `pass --wait`
>> would also be useful in that context.
>>
>> In fact, what I currently have is this:
>>
>>      pass -c "{query}"
>>      sleep "${PASSWORD_STORE_CLIP_TIME:-45}"
>>
>>
>>
>> On 13 Apr 2016, at 21:17, Fernando Vezzosi wrote:
>>
>> > With this, we can have an indication about the clipboard contents
>> > changing.
>> >
>> > No more playing the "have the 45 seconds past yet?" guessing game.
>> >
>> > No more "I'll try pasting over here in plaintext first, see if it
>> > looks like a
>> > password or like the clipboard's previous contents".
>> >
>> > --
>> >   % perl -E'$_="Pop Corn",s/\b\S(?{$0=$&^_^L})/$0/g,say'
>> > _______________________________________________
>> > Password-Store mailing list
>> > Password-Store at lists.zx2c4.com
>> > http://lists.zx2c4.com/mailman/listinfo/password-store
>> _______________________________________________
>> Password-Store mailing list
>> Password-Store at lists.zx2c4.com
>> http://lists.zx2c4.com/mailman/listinfo/password-store
>>
>
> _______________________________________________
> Password-Store mailing list
> Password-Store at lists.zx2c4.com
> http://lists.zx2c4.com/mailman/listinfo/password-store
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.zx2c4.com/pipermail/password-store/attachments/20160415/af0e35d6/attachment.html>


More information about the Password-Store mailing list