Custom script for Rofi that allows you to copy passwords from your 1Password vaults. Based on the wonderfully simple rofi-lpass by Magnus Bergmark.
- List all your entries
- Copy password of an entry
- Copy username / email of an entry
- Copy URL (if entry has an URL)
- Open URL (if entry has an URL)
In order to support interactive login (where rofi-1pass
will prompt you for your password if you
don't currently have a session active), you will need pinentry-x11
, which is part of GnuPG,
which is part of virtually every distribution.
- Make sure you have the 1Password command-line tool
installed, with
op
on yourPATH
. - Symlink the script to somewhere on your
$PATH
:ln -s $(pwd)/rofi-1pass ~/bin/rofi-1pass
. - If you don't have
pinentry-x11
, make sure your environment has an activeOP_SESSION
. Alternatively, you can put the output ofop signin
into~/.op/session
where it will be automatically sourced. - Run rofi with this as a custom script:
rofi -modi 1pass:rofi-1pass -show 1pass
.
Copyright © 2018 Adrian Petrescu. Code released under the MIT license.