diff --git a/README b/README index 925775d..b4ff6c0 100644 --- a/README +++ b/README @@ -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"; diff --git a/config.def.h b/config.def.h index 4fcd5c9..589b852 100644 --- a/config.def.h +++ b/config.def.h @@ -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" }, diff --git a/pinentry-dmenu.1 b/pinentry-dmenu.1 index 793efaa..439793c 100644 --- a/pinentry-dmenu.1 +++ b/pinentry-dmenu.1 @@ -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";