summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-12-12 23:27:49 +0000
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-12-12 23:27:49 +0000
commit7389e60d59e225b819004cfe60c893493ab129f4 (patch)
tree0aacc1e218be6ff0dfc23cc54140dc4fa362a3ab
parenta0a521a5c5537a9730c05cb9b471372f04794b9b (diff)
use vi mode for dmenu by default
-rw-r--r--config.h2
-rw-r--r--dwm.c2
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) {