I use a password manager (to be specific: pass) to store my passwords. The interface I use most often is passmenu to put the password on my clipboard, which I can then paste in my terminal/browser/whatever.
Sometimes I'm not careful and I forgot that I have my password still on my clipboard and I paste it somewhere I shouldn't. What I would like is to have some protection from myself and only be able to paste the password once: after pasting the clipboard should be cleared.
Now it's probably not to hard to hack something together that does this with the standard unix tools. Before I do so, I would like to know if I'm not reinventing something that already exists. Also, it would be good to know if there are any password managers that have this functionality built-in?
Ps. I know that some password managers clear the clipboard after a specified time, but that's not the solution I am looking for.