A pinentry program with the charm of dmenu. Forked from https://github.com/ritze/pinentry-dmenu
Find a file
2017-09-23 15:20:57 +02:00
pinentry Use secure memory 2017-08-23 22:21:50 +02:00
config.h Move all config variables into config.h and rename topbar to buttom 2017-09-15 00:39:22 +02:00
config.mk Revert some changes and add old code from dmenu 2017-08-01 20:00:08 +02:00
drw.c Revert some changes and add old code from dmenu 2017-08-01 20:00:08 +02:00
drw.h Revert some changes and add old code from dmenu 2017-08-01 20:00:08 +02:00
LICENSE This is a "barely works" version of spine, I hope it works, at least barely. 2015-11-23 17:08:20 +03:00
Makefile Add libconfig 2017-08-23 22:22:23 +02:00
pinentry-dmenu.c Move all config variables into config.h and rename topbar to buttom 2017-09-15 00:39:22 +02:00
pinentry_t minor cleanup and root Makefile now triggers pinentry Makefile 2015-11-24 18:54:37 +03:00
README Add examples to README 2017-09-23 15:20:57 +02:00
test Rename spine into pinentry-dmenu 2017-07-30 13:08:45 +02:00
util.c Revert some changes and add old code from dmenu 2017-08-01 20:00:08 +02:00
util.h Revert some changes and add old code from dmenu 2017-08-01 20:00:08 +02:00

pinentry-dmenu
==============

pinentry-dmenu is a pinentry program with the charm of [dmenu](https://tools.suckless.org/dmenu).

This program is a fork from [spine](https://gitgud.io/zavok/spine.git) which is also a fork from [dmenu](https://tools.suckless.org/dmenu).


Requirements
------------
In order to build dmenu you need the Xlib header files.


Installation
------------
Edit config.mk to match your local setup (dmenu is installed into the /usr/local namespace by default).

Afterwards enter the following command to build and install dmenu
(if necessary as root):

	make clean install


Config
------
To use pinentry-dmenu add in `~/.gnupg/gpg-agent.conf`:

	pinentry-program <absolut path to pinentry-dmenu>

The config is located in `~/.gnupg/pinentry-dmenu.conf`.

^ Parameter           ^ Default           ^ Description ^
| ------------------- | ----------------- | ----------- |
| asterisk            | *                 | Defines the symbol which is showed for each typed character |
| buttom              | false             | pinentry-dmenu appears at the bottom of the screen |
| min_password_length | 32                | The minimal space of the password field. This value has affect to the description field after the password field |
| monitor             | -1                | pinentry-dmenu is displayed on the monitor number supplied. Monitor numbers are starting from 0 |
| prompt              | ""                | Defines the prompt to be displayed to the left of the input field |
| font                | monospace:size=10 | Defines the font or font set used |
| prompt_bg           | #bbbbbb           | Defines the prompt background color |
| prompt_fg           | #222222           | Defines the prompt foreground color |
| normal_bg           | #bbbbbb           | Defines the normal background color |
| normal_fg           | #222222           | Defines the normal foreground color |
| select_bg           | #eeeeee           | Defines the selected background color |
| select_fg           | #005577           | Defines the selected foreground color |
| desc_bg             | #bbbbbb           | Defines the description background color |
| desc_fg             | #222222           | Defines the description foreground color |
| embedded            | false             | Embed into window |


Example
-------
```
asterisk= "# ";
prompt = "$";
font = "Noto Sans UI:size=13";
prompt_fg = "#eeeeee";
prompt_bg = "#d9904a";
normal_fg = "#ffffff";
normal_bg = "#000000";
select_fg = "#eeeeee";
select_bg = "#d9904a";
desc_fg = "#eeeeee";
desc_bg = "#d9904a";
```