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
Running pinentry-dmenu
----------------------
See the man page for details.
Config
------
To use pinentry-dmenu add in `~/.gnupg/gpg-agent.conf`:
@ -35,10 +39,10 @@ bottom = false;
embedded = false;
line_height = 22;
border_width = 2;
font = "DejaVuSansMono Nerd Font:pixelsize=16:antialias=true:autohint=true";
min_password_length = 32;
asterisk= "*";
font = "DejaVuSansMono Nerd Font:pixelsize=16:antialias=true:autohint=true";
prompt = "";
asterisk= "*";
prompt_fg = "#cccccc";
prompt_bg = "#4185d7";
normal_fg = "#cccccc";

View File

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

View File

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