minor fixes

This commit is contained in:
mrdotx 2021-07-27 18:53:48 +02:00
parent 759d0713f7
commit 721c87ef6e
No known key found for this signature in database
GPG Key ID: 433F70E636E6EB87
3 changed files with 19 additions and 15 deletions

8
README
View File

@ -20,6 +20,10 @@ Afterwards enter the following command to build and install dmenu
make clean install make clean install
Running pinentry-dmenu
----------------------
See the man page for details.
Config Config
------ ------
To use pinentry-dmenu add in `~/.gnupg/gpg-agent.conf`: To use pinentry-dmenu add in `~/.gnupg/gpg-agent.conf`:
@ -35,10 +39,10 @@ bottom = false;
embedded = false; embedded = false;
line_height = 22; line_height = 22;
border_width = 2; border_width = 2;
font = "DejaVuSansMono Nerd Font:pixelsize=16:antialias=true:autohint=true";
min_password_length = 32; min_password_length = 32;
asterisk= "*"; font = "DejaVuSansMono Nerd Font:pixelsize=16:antialias=true:autohint=true";
prompt = ""; prompt = "";
asterisk= "*";
prompt_fg = "#cccccc"; prompt_fg = "#cccccc";
prompt_bg = "#4185d7"; prompt_bg = "#4185d7";
normal_fg = "#cccccc"; normal_fg = "#cccccc";

View File

@ -1,22 +1,22 @@
/* See LICENSE file for copyright and license details. */ /* See LICENSE file for copyright and license details. */
/* Default settings; can be overriden by command line. */ /* Default settings; can be overriden by pinentry-dmenu.conf */
static int mon = -1;
static unsigned int mon = -1;
static unsigned int center = 0; static unsigned int center = 0;
static unsigned int centerwidth = 750; static unsigned int centerwidth = 750;
static unsigned int bottom = 0; static unsigned int bottom = 0;
static unsigned int embedded = 0; static unsigned int embedded = 0;
static unsigned int minpwlen = 32;
static unsigned int lineheight = 22; static unsigned int lineheight = 22;
static unsigned int borderwidth = 2; static unsigned int borderwidth = 2;
static unsigned int minpwlen = 32;
static const char *fonts[] = { static const char *fonts[] = {
"DejaVuSansMono Nerd Font:pixelsize=16:antialias=true:autohint=true" "DejaVuSansMono Nerd Font:pixelsize=16:antialias=true:autohint=true"
}; };
static const char *asterisk = "*";
static const char *prompt = NULL; static const char *prompt = NULL;
static const char *colors[SchemeLast][4] = { static const char *asterisk = "*";
static const char *colors[SchemeLast][2] = {
/* foreground, background */
[SchemePrompt] = { "#cccccc", "#4185d7" }, [SchemePrompt] = { "#cccccc", "#4185d7" },
[SchemeNormal] = { "#cccccc", "#000000" }, [SchemeNormal] = { "#cccccc", "#000000" },
[SchemeSelect] = { "#ffffff", "#4185d7" }, [SchemeSelect] = { "#ffffff", "#4185d7" },

View File

@ -46,18 +46,18 @@ Defines menu line of at least 'line_height' pixels tall.
.BI "border_width =" " 2" .BI "border_width =" " 2"
Defines the border width for the menu. Defines the border width for the menu.
.TP .TP
.BI "font =" " DejaVuSansMono Nerd Font:pixelsize=16:antialias=true:autohint=true"
Defines the font or font set used.
.TP
.BI "min_password_length =" " 32" .BI "min_password_length =" " 32"
The minimal space of the password field. This value has affect to the description field after the password field. The minimal space of the password field. This value has affect to the description field after the password field.
.TP .TP
.BI "asterisk =" " *" .BI "font =" " DejaVuSansMono Nerd Font:pixelsize=16:antialias=true:autohint=true"
Defines the symbol which is showed for each typed character. Defines the font or font set used.
.TP .TP
.BI "prompt =" " """" .BI "prompt =" " """"
Defines the prompt to be displayed to the left of the input field. Defines the prompt to be displayed to the left of the input field.
.TP .TP
.BI "asterisk =" " *"
Defines the symbol which is showed for each typed character.
.TP
.BI "prompt_fg =" " #cccccc" .BI "prompt_fg =" " #cccccc"
Defines the prompt foreground color. Defines the prompt foreground color.
.IR #RGB , .IR #RGB ,
@ -204,10 +204,10 @@ bottom = false;
embedded = false; embedded = false;
line_height = 22; line_height = 22;
border_width = 2; border_width = 2;
font = "DejaVuSansMono Nerd Font:pixelsize=16:antialias=true:autohint=true";
min_password_length = 32; min_password_length = 32;
asterisk= "*"; font = "DejaVuSansMono Nerd Font:pixelsize=16:antialias=true:autohint=true";
prompt = ""; prompt = "";
asterisk= "*";
prompt_fg = "#cccccc"; prompt_fg = "#cccccc";
prompt_bg = "#4185d7"; prompt_bg = "#4185d7";
normal_fg = "#cccccc"; normal_fg = "#cccccc";