broken
This commit is contained in:
parent
264d8f9d82
commit
b5112c9a9a
8
config.h
8
config.h
|
@ -90,8 +90,6 @@ static const Layout layouts[] = {
|
||||||
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
#define SHCMD(cmd) { .v = (const char*[]){ "/bin/sh", "-c", cmd, NULL } }
|
||||||
|
|
||||||
/* commands */
|
/* commands */
|
||||||
static char dmenumon[2] = "0"; /* component of dmenucmd, manipulated in spawn() */
|
|
||||||
|
|
||||||
static const char *screenshot[] = { "scrsht", NULL };
|
static const char *screenshot[] = { "scrsht", NULL };
|
||||||
static const char *screenshotarea[] = { "scrsht", "-s", 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 *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 const char *termcmd[] = { "st", NULL };
|
||||||
|
|
||||||
static Key keys[] = {
|
static const Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
{ 0, XK_Print, spawn, {.v = screenshot } },
|
{ 0, XK_Print, spawn, {.v = screenshot } },
|
||||||
{ ShiftMask, XK_Print, spawn, {.v = screenshotarea } },
|
{ ShiftMask, XK_Print, spawn, {.v = screenshotarea } },
|
||||||
|
@ -159,7 +157,7 @@ static Key keys[] = {
|
||||||
|
|
||||||
/* button definitions */
|
/* button definitions */
|
||||||
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
|
/* click can be ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle, ClkClientWin, or ClkRootWin */
|
||||||
static Button buttons[] = {
|
static const Button buttons[] = {
|
||||||
/* click event mask button function argument */
|
/* click event mask button function argument */
|
||||||
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
|
{ ClkLtSymbol, 0, Button1, setlayout, {0} },
|
||||||
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
|
{ ClkLtSymbol, 0, Button3, setlayout, {.v = &layouts[2]} },
|
||||||
|
|
2
dwm.c
2
dwm.c
|
@ -482,8 +482,6 @@ buttonpress(XEvent *e)
|
||||||
goto execute_handler;
|
goto execute_handler;
|
||||||
}
|
}
|
||||||
|
|
||||||
x += blw;
|
|
||||||
|
|
||||||
for(i = 0; i < LENGTH(launchers); i++) {
|
for(i = 0; i < LENGTH(launchers); i++) {
|
||||||
x += TEXTW(launchers[i].name);
|
x += TEXTW(launchers[i].name);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue