From 0ee43b885541874e4cb04fe3f1fc7cb8e1bfccf4 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Thu, 24 Oct 2024 14:29:12 +0100 Subject: Replaced patches.org with patches folder Includes new patch for better vim keys. --- patches/dmenu-better-vim-keys.diff | 60 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 patches/dmenu-better-vim-keys.diff (limited to 'patches/dmenu-better-vim-keys.diff') diff --git a/patches/dmenu-better-vim-keys.diff b/patches/dmenu-better-vim-keys.diff new file mode 100644 index 0000000..24ec8b3 --- /dev/null +++ b/patches/dmenu-better-vim-keys.diff @@ -0,0 +1,60 @@ +From a9e36deccc71e5774a198e652c986211bb7a123e Mon Sep 17 00:00:00 2001 +From: Aryadev Chavali +Date: Thu, 24 Oct 2024 14:23:01 +0100 +Subject: [PATCH] [PATCH] M-j and M-k iterate choices 1-1, M-h and M-l + page-page. + +Flip the M-{j, k} and M-{h, l} commands, to mirror my Emacs +configuration. +--- + dmenu.1 | 8 ++++---- + dmenu.c | 8 ++++---- + 2 files changed, 8 insertions(+), 8 deletions(-) + +diff --git a/dmenu.1 b/dmenu.1 +index 472b179..d635316 100644 +--- a/dmenu.1 ++++ b/dmenu.1 +@@ -199,16 +199,16 @@ Home + End + .TP + .B M\-h +-Up ++Page up + .TP + .B M\-j +-Page down ++Down + .TP + .B M\-k +-Page up ++Up + .TP + .B M\-l +-Down ++Page down + .SH SEE ALSO + .IR dwm (1), + .IR stest (1) +diff --git a/dmenu.c b/dmenu.c +index 9ecbd86..8a3c68e 100644 +--- a/dmenu.c ++++ b/dmenu.c +@@ -515,10 +515,10 @@ keypress(XKeyEvent *ev) + goto draw; + case XK_g: ksym = XK_Home; break; + case XK_G: ksym = XK_End; break; +- case XK_h: ksym = XK_Up; break; +- case XK_j: ksym = XK_Next; break; +- case XK_k: ksym = XK_Prior; break; +- case XK_l: ksym = XK_Down; break; ++ case XK_h: ksym = XK_Prior; break; ++ case XK_j: ksym = XK_Down; break; ++ case XK_k: ksym = XK_Up; break; ++ case XK_l: ksym = XK_Next; break; + default: + return; + } +-- +2.47.0 + -- cgit v1.2.3-13-gbd6f