From 3569711684cf06759e0f6a5d310ad36179a1131b Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Wed, 29 Apr 2020 23:32:31 +0200 Subject: [PATCH] modified: README deleted: README.md modified: config.def.h modified: config.h modified: dmenu.1 LICENSE dmenu.c dmenu.o dmenu_path drw.o stest stest.1 stest.c stest.o util.c util.o --- README | 5 ----- README.md | 29 ----------------------------- config.def.h | 15 +++++++++------ config.h | 22 ++++------------------ dmenu.1 | 5 ++++- 5 files changed, 17 insertions(+), 59 deletions(-) delete mode 100644 README.md diff --git a/README b/README index e79f040..a8fcdfe 100644 --- a/README +++ b/README @@ -2,11 +2,6 @@ dmenu - dynamic menu ==================== dmenu is an efficient dynamic menu for X. -Personal Adjustments --------------------- -This build has a history feature, can open a terminal window -if command ends in "!" and is adjust to fit bar padding used in dwm. - Requirements ------------ diff --git a/README.md b/README.md deleted file mode 100644 index e79f040..0000000 --- a/README.md +++ /dev/null @@ -1,29 +0,0 @@ -dmenu - dynamic menu -==================== -dmenu is an efficient dynamic menu for X. - -Personal Adjustments --------------------- -This build has a history feature, can open a terminal window -if command ends in "!" and is adjust to fit bar padding used in dwm. - - -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 - - -Running dmenu -------------- -See the man page for details. diff --git a/config.def.h b/config.def.h index 1edb647..f1e32e8 100644 --- a/config.def.h +++ b/config.def.h @@ -4,18 +4,21 @@ static int topbar = 1; /* -b option; if 0, dmenu appears at bottom */ /* -fn option overrides fonts[0]; default X11 font or font set */ static const char *fonts[] = { - "monospace:size=10" -}; + "monospace:size=13", + "IPAGothic:size=13", + "symbola:size=13"}; + static const char *prompt = NULL; /* -p option; prompt to the left of input field */ + static const char *colors[SchemeLast][2] = { /* fg bg */ - [SchemeNorm] = { "#bbbbbb", "#222222" }, - [SchemeSel] = { "#eeeeee", "#005577" }, - [SchemeOut] = { "#000000", "#00ffff" }, + [SchemeNorm] = { "#d7d5d1", "#000000" }, + [SchemeSel] = { "#d7d5d1", "#7D7A63" }, + [SchemeOut] = { "#d7d5d1", "#96A3A8" }, }; + /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ static unsigned int lines = 0; - /* * Characters not considered part of a word while deleting words * for example: " /?\"&[]" diff --git a/config.h b/config.h index 19017c9..b50ee7a 100644 --- a/config.h +++ b/config.h @@ -7,6 +7,7 @@ static const char *fonts[] = { "monospace:size=13", "IPAGothic:size=13", "symbola:size=13"}; + static const char *prompt = NULL; /* -p option; prompt to the left of input field */ static const char *colors[SchemeLast][2] = { @@ -16,27 +17,12 @@ static const char *colors[SchemeLast][2] = { [SchemeOut] = { "#d7d5d1", "#96A3A8" }, }; - - -//static const char *colors[SchemeLast][2] = { -// /* fg bg */ -// [SchemeNorm] = { "#d3dae3", "#000000" }, -// [SchemeSel] = { "#d3dae3", "#718AAA" }, -// [SchemeOut] = { "#d3dae3", "#9DB1CE" }, -//}; - -/*static const char *colors[SchemeLast][2] = { - fg bg - [SchemeNorm] = { "#bbbbbb", "#222222" }, - [SchemeSel] = { "#eeeeee", "#005577" }, - [SchemeOut] = { "#000000", "#00ffff" }, -};*/ - /* -l option; if nonzero, dmenu uses vertical list with given number of lines */ static unsigned int lines = 0; -static const int vertpad = 10; /* vertical padding of bar */ -static const int sidepad = 20; /* horizontal padding of bar */ +static int instant = 1; +static int sidepad = 20; +static int vertpad = 10; /* * Characters not considered part of a word while deleting words * for example: " /?\"&[]" diff --git a/dmenu.1 b/dmenu.1 index 323f93c..bdd25ea 100644 --- a/dmenu.1 +++ b/dmenu.1 @@ -3,7 +3,7 @@ dmenu \- dynamic menu .SH SYNOPSIS .B dmenu -.RB [ \-bfiv ] +.RB [ \-bfinv ] .RB [ \-l .IR lines ] .RB [ \-m @@ -47,6 +47,9 @@ is faster, but will lock up X until stdin reaches end\-of\-file. .B \-i dmenu matches menu items case insensitively. .TP +.B \-n +dmenu instantly selects if only one match +.TP .BI \-l " lines" dmenu lists items vertically, with the given number of lines. .TP