From 7389e60d59e225b819004cfe60c893493ab129f4 Mon Sep 17 00:00:00 2001 From: ProsperousPotato Date: Fri, 12 Dec 2025 23:27:49 +0000 Subject: use vi mode for dmenu by default --- config.h | 2 +- dwm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.h b/config.h index a088f13..3ed7da2 100644 --- a/config.h +++ b/config.h @@ -24,7 +24,7 @@ static const char *colors[][5] = { static const char *const autostart[] = { /* program arguments options null terminator */ "xhidecursor", "", "", NULL, - "xsetroot", "-solid", "black", NULL, + "xsetroot", "-solid", "black", NULL, "xmodmap", "-e", "keycode 66 = Escape", NULL, "xmodmap", "-e", "keycode 108 = Caps_Lock", NULL, NULL diff --git a/dwm.c b/dwm.c index 7de4bd7..b5ff60a 100644 --- a/dwm.c +++ b/dwm.c @@ -2407,7 +2407,7 @@ search(const Arg *arg) { names[nameslen - 1] = '\0'; char dmenucmd[256]; - snprintf(dmenucmd, sizeof(dmenucmd), "echo '%s' | dmenu -l 10 -i -p 'Find client:'", names); + snprintf(dmenucmd, sizeof(dmenucmd), "echo '%s' | dmenu -vi -l 10 -i -p 'Find client:'", names); FILE *fp = popen(dmenucmd, "r"); if (!fp) { -- cgit v1.2.3