A simple pinentry program using rofi.
Inspired by gist and @plattfot/pinentry-rofi
- Python 3.9+
- rofi
- pygobject
pygobject
package for Arch
-
Copy
pinentry_rofi.py
to your~/.local/bin
-
chmod +x ~/.local/bin/pinentry_rofi.py
-
Set
pinentry-program
in~/.gnupg/gpg-agent.conf
. For example:pinentry-program <HOME>/.local/bin/pinentry_rofi.py
-
Restart gpg-agent
gpgconf --kill gpg-agent
Run pinentry_rofi.py --help