diff --git a/config.h b/config.h index 401ccdb..78ee1ad 100644 --- a/config.h +++ b/config.h @@ -90,8 +90,6 @@ static const Layout layouts[] = { #define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } } /* commands */ -static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */ - static const char *screenshot[] = { "scrsht", NULL }; static const char *screenshotarea[] = { "scrsht", "-s", NULL }; @@ -101,10 +99,10 @@ static const char *volmute[] = { "pactl", "set-sink-mute", "0", "toggle", NULL } static const char *backlightup[] = { "s", "set-sink-mute", "0", "toggle", NULL }; -static const char *dmenucmd[] = { "dmenu_run", "-g", "15", "-m", dmenumon, "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbordercolor, "-sf", selfgcolor, NULL }; +static const char *dmenucmd[] = { "dmenu_run", "-g", "15", "-fn", dmenufont, "-nb", normbgcolor, "-nf", normfgcolor, "-sb", selbordercolor, "-sf", selfgcolor, NULL }; static const char *termcmd[] = { "st", NULL }; -static Key keys[] = { +static const Key keys[] = { /* modifier key function argument */ { 0, XK_Print, spawn, {.v = screenshot } }, { ShiftMask, XK_Print, spawn, {.v = screenshotarea } }, @@ -159,7 +157,7 @@ static Key keys[] = { /* button definitions */ /* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */ -static Button buttons[] = { +static const Button buttons[] = { /* click event mask button function argument */ { ClkLtSymbol, 0, Button1, setlayout, {0} }, { ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} }, diff --git a/drw.o b/drw.o index 3bcf331..b783a1b 100644 Binary files a/drw.o and b/drw.o differ diff --git a/dwm b/dwm index 4c5e39e..219ec19 100755 Binary files a/dwm and b/dwm differ diff --git a/dwm.c b/dwm.c index 05d0f36..219acb9 100644 --- a/dwm.c +++ b/dwm.c @@ -482,8 +482,6 @@ buttonpress(XEvent *e) goto execute_handler; } - x += blw; - for(i = 0; i < LENGTH(launchers); i++) { x += TEXTW(launchers[i].name); diff --git a/dwm.o b/dwm.o index d9de5dd..c8d43f3 100644 Binary files a/dwm.o and b/dwm.o differ