dmenu

my build of dynamic menu
git clone git://git.kocotian.pl/dmenu.git
Log | Files | Refs | README | LICENSE

commit 57c9b1c3c5c7ad946a9198693e508cbc90a877ae
parent d0b408c4763ae098ec72b3e40ab4ecdf1042e55e
Author: kocotian <kocotian@kocotian.pl>
Date:   Wed, 30 Dec 2020 11:58:24 +0100

colors, own vimkeys patch for better steering

Diffstat:
Mconfig.def.h | 8++++----
Mdmenu.c | 7+++----
Apatches/dmenu-vimkeys-5.0.diff | 22++++++++++++++++++++++
3 files changed, 29 insertions(+), 8 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -11,10 +11,10 @@ static const char *fonts[] = { }; 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" }, + /* fg bg */ + [SchemeNorm] = { "#aaaaaa", "#222222" }, + [SchemeSel] = { "#ffffff", "#222222" }, + [SchemeOut] = { "#000000", "#00ffff" }, }; /* -l and -g options; controls number of lines and columns in grid if > 0 */ static unsigned int lines = 0; diff --git a/dmenu.c b/dmenu.c @@ -439,14 +439,13 @@ keypress(XKeyEvent *ev) case XK_g: ksym = XK_Escape; break; case XK_h: ksym = XK_BackSpace; break; case XK_i: ksym = XK_Tab; break; - case XK_j: /* fallthrough */ - case XK_J: /* fallthrough */ - case XK_m: /* fallthrough */ case XK_M: ksym = XK_Return; ev->state &= ~ControlMask; break; + case XK_j: /* fallthrough */ case XK_n: ksym = XK_Down; break; + case XK_k: /* fallthrough */ case XK_p: ksym = XK_Up; break; - case XK_k: /* delete right */ + case XK_r: /* delete right */ text[cursor] = '\0'; match(); break; diff --git a/patches/dmenu-vimkeys-5.0.diff b/patches/dmenu-vimkeys-5.0.diff @@ -0,0 +1,22 @@ +diff --git a/dmenu.c b/dmenu.c +index 7174098..b081f42 100644 +--- a/dmenu.c ++++ b/dmenu.c +@@ -403,14 +402,13 @@ keypress(XKeyEvent *ev) + case XK_g: ksym = XK_Escape; break; + case XK_h: ksym = XK_BackSpace; break; + case XK_i: ksym = XK_Tab; break; +- case XK_j: /* fallthrough */ +- case XK_J: /* fallthrough */ +- case XK_m: /* fallthrough */ + case XK_M: ksym = XK_Return; ev->state &= ~ControlMask; break; ++ case XK_j: /* fallthrough */ + case XK_n: ksym = XK_Down; break; ++ case XK_k: /* fallthrough */ + case XK_p: ksym = XK_Up; break; + +- case XK_k: /* delete right */ ++ case XK_r: /* delete right */ + text[cursor] = '\0'; + match(); + break;