aboutsummaryrefslogtreecommitdiffstats
path: root/README.md
diff options
context:
space:
mode:
authorMatěj Cepl <mcepl@cepl.eu>2023-05-18 14:53:50 +0200
committerMatěj Cepl <mcepl@cepl.eu>2023-08-11 11:59:01 +0200
commit53aabece0f1d465872ae8e9ff21b8c545f1e0566 (patch)
treec7adcb3a555b6c32aafb08d2b1c2780f87ea0a8e /README.md
parenta67f3096128ff26b0a58e4eb09ae57756d6fd97c (diff)
downloadpinentry-rofi-53aabece0f1d465872ae8e9ff21b8c545f1e0566.tar.gz
fix: remove unnecessary stuff and some more debugging to the Python version.
Diffstat (limited to 'README.md')
-rw-r--r--README.md70
1 files changed, 70 insertions, 0 deletions
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..f1559cd
--- /dev/null
+++ b/README.md
@@ -0,0 +1,70 @@
+# Description
+
+Based on [this gist](https://gist.github.com/sardemff7/759cbf956bea20d382a6128c641d2746)
+and [pinentry-rofi](https://github.com/plattfot/pinentry-rofi). Thank
+you, Fredrik Salomonsson, for doing all the hard work.
+
+Simple
+[pinentry](https://www.gnupg.org/related_software/pinentry/index.html)
+gui using [rofi](https://github.com/davatorium/rofi).
+
+It\'s similar in functionality as the gist and the previous script, but
+on the MicroOS, where I work now, it is essential to install as
+few as possible additional software, so Guile is certainly too much.
+
+Then add it to your `~/.gnupg/gpg-agent.conf`
+
+On a distribution that is using systemd (here I\'m using Arch Linux as
+an example) simply run:
+
+``` shell
+echo "GUIX_LOCPATH=$GUIX_LOCPATH"
+```
+
+Copy that, then run:
+
+``` shell
+systend --user edit gpg-agent.service
+```
+
+And add it in the `override.conf`
+
+``` conf
+[Service]
+Environment=GUIX_LOCPATH=%h/.guix-profile/lib/locale
+```
+
+On my system, `GUIX_LOCPATH` points to the default profile
+i.e. `$HOME/.guix-profile/lib/locale`. `%h` in
+systemd gives you the path to the home directory. This should be the
+case for most people, but if your `GUIX_LOCPATH` points to
+something different change the `override.conf` to reflect
+that.
+
+# Gpg-agent
+
+To use `pinentry-rofi` with `gpg-agent`, you can
+set it as the `pinentry-program` in the
+`~/.gnupg/gpg-agent.conf`. Note that you need to use the full
+path to the binary.
+
+For example for Arch Linux this would be:
+
+``` conf
+pinentry-program /usr/bin/pinentry-rofi
+```
+
+And for guix:
+
+``` conf
+pinentry-program <HOME>/.guix-profile/bin/pinentry-rofi
+```
+
+Where `<HOME>` is the full path to home for your user.
+
+Don\'t forget to restart `gpg-agent` for the changes to take
+affect:
+
+``` shell
+gpg-connect-agent reloadagent /bye
+```