rofi-pass icon indicating copy to clipboard operation
rofi-pass copied to clipboard

Copy fields to clipboard when autofilling

Open lyze237 opened this issue 8 years ago • 1 comments

Hello!

It would be really amazing if we could copy fields to clipboard in the autofill mode.

For example I want to let rofi-pass autofill username and password then copy the otp token into the clipboard.

Would something like that be doable?

lyze237 avatar Mar 07 '18 07:03 lyze237

  • Yes we could: add a :clip directive in the autotype function (https://github.com/carnager/rofi-pass/blob/29307e3048acca8f725bc1c0ce799ef2c78dddf9/rofi-pass#L79-L87). Anything after :clip gets sent to the clipboard.
  • You could/should probably work around your issue (XY problem maybe?) by using a delay in your autotype field:
~/.password-store/passwithotp.gpg
myPassW0rd!
user: foobar
optauth://<...>
autotype: user :tab pass :enter :delay :delay :delay :otp

moviuro avatar Mar 07 '18 13:03 moviuro