From af623c7ac8bb22830fcc6058e3de0b522f8a3953 Mon Sep 17 00:00:00 2001 From: Ryan Kes Date: Tue, 19 Mar 2019 14:15:08 +0100 Subject: [PATCH] make dmenu case insensitive and remove keybindings that don't belong here --- PKGBUILD | 2 +- config.h | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/PKGBUILD b/PKGBUILD index c4d1f73..11b8194 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -34,7 +34,7 @@ source=(http://dl.suckless.org/dwm/dwm-$pkgver.tar.gz "${_patches[@]}") md5sums=('9929845ccdec4d2cc191f16210dd7f3d' - '70f62e6ba4d264af37b18a2c27aaa002' + '1e9e49e3d199aa86173c1dd1ab964b6c' '939f403a71b6e85261d09fc3412269ee' '31a7569d7f3d43846f59e854ec5d1da0' 'fbb786263f2d714b18368ff64779d669' diff --git a/config.h b/config.h index 501f441..0c8d672 100644 --- a/config.h +++ b/config.h @@ -146,18 +146,16 @@ static const Layout layouts[] = { /* commands */ static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ -static const char *dmenucmd[] = { "dmenu_run", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; +static const char *dmenucmd[] = { "dmenu_run", "-i", "-m", dmenumon, "-fn", dmenufont, "-nb", col_gray1, "-nf", col_gray3, "-sb", col_cyan, "-sf", col_gray4, NULL }; static const char *termcmd[] = { "st", NULL }; static const char scratchpadname[] = "scratchpad"; static const char *scratchpadcmd[] = { "st", "-t", scratchpadname, "-g", "120x34", NULL }; -static const char *slockcmd[] = { "/home/alrayyes/.scripts/lock.sh" }; #include "selfrestart.c" static Key keys[] = { /* modifier key function argument */ { MODKEY, XK_p, spawn, {.v = dmenucmd } }, - { MODKEY, XK_x, spawn, {.v = slockcmd } }, { MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } }, { MODKEY, XK_grave, togglescratch, {.v = scratchpadcmd } }, { MODKEY, XK_b, togglebar, {0} },