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, <[email protected]> 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 > > [email protected] > > http://lists.zx2c4.com/mailman/listinfo/password-store > _______________________________________________ > Password-Store mailing list > [email protected] > http://lists.zx2c4.com/mailman/listinfo/password-store >
_______________________________________________ Password-Store mailing list [email protected] http://lists.zx2c4.com/mailman/listinfo/password-store
