Compare commits
6 Commits
e45d1e5c40
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| e77a1963d6 | |||
|
|
f31f24c7ae | ||
|
|
76e4761e00 | ||
|
|
477d33baa0 | ||
|
|
574b69eb37 | ||
|
|
8888121330 |
7
Makefile
7
Makefile
@@ -13,9 +13,6 @@ all: dwm
|
|||||||
|
|
||||||
${OBJ}: config.h config.mk
|
${OBJ}: config.h config.mk
|
||||||
|
|
||||||
config.h:
|
|
||||||
cp config.def.h $@
|
|
||||||
|
|
||||||
dwm: ${OBJ}
|
dwm: ${OBJ}
|
||||||
${CC} -o $@ ${OBJ} ${LDFLAGS}
|
${CC} -o $@ ${OBJ} ${LDFLAGS}
|
||||||
|
|
||||||
@@ -24,8 +21,8 @@ clean:
|
|||||||
|
|
||||||
dist: clean
|
dist: clean
|
||||||
mkdir -p dwm-${VERSION}
|
mkdir -p dwm-${VERSION}
|
||||||
cp -R LICENSE Makefile README config.def.h config.mk\
|
cp -R LICENSE Makefile README config.mk\
|
||||||
dwm.1 drw.h util.h ${SRC} dwm.png transient.c dwm-${VERSION}
|
dwm.1 drw.h util.h ${SRC} transient.c dwm-${VERSION}
|
||||||
tar -cf dwm-${VERSION}.tar dwm-${VERSION}
|
tar -cf dwm-${VERSION}.tar dwm-${VERSION}
|
||||||
gzip dwm-${VERSION}.tar
|
gzip dwm-${VERSION}.tar
|
||||||
rm -rf dwm-${VERSION}
|
rm -rf dwm-${VERSION}
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
/* See LICENSE file for copyright and license details. */
|
/* See LICENSE file for copyright and license details. */
|
||||||
|
|
||||||
|
/* NOTE: config.h replaces this file, but I'm keeping this one to help distinguish
|
||||||
|
* between others' patches (published via suckless.org) and my own additions.
|
||||||
|
* - to see others' patches, diff config.def.h against upstream's config.def.h
|
||||||
|
* - to see my additional changes, diff config.h against config.def.h
|
||||||
|
*/
|
||||||
|
|
||||||
/* appearance */
|
/* appearance */
|
||||||
static unsigned int borderpx = 1; /* border pixel of windows */
|
static unsigned int borderpx = 1; /* border pixel of windows */
|
||||||
static unsigned int snap = 32; /* snap pixel */
|
static unsigned int snap = 32; /* snap pixel */
|
||||||
|
|||||||
13
config.h
13
config.h
@@ -104,13 +104,15 @@ ResourcePref resources[] = {
|
|||||||
|
|
||||||
static const Key keys[] = {
|
static const Key keys[] = {
|
||||||
/* modifier key function argument */
|
/* modifier key function argument */
|
||||||
{ MODKEY|ShiftMask, XK_b, togglebar, {0} },
|
{ MODKEY|ShiftMask, XK_f, togglebar, {0} },
|
||||||
STACKKEYS(MODKEY, focus)
|
STACKKEYS(MODKEY, focus)
|
||||||
STACKKEYS(MODKEY|ShiftMask, push)
|
STACKKEYS(MODKEY|ShiftMask, push)
|
||||||
|
/* { MODKEY, XK_h, zxcv, {.f = -0.05} }, */
|
||||||
|
/* { MODKEY, XK_l, zxcv, {.f = +0.05} }, */
|
||||||
|
{ MODKEY|ShiftMask, XK_h, setmfact, {.f = -0.05} }, // zxcv
|
||||||
|
{ MODKEY|ShiftMask, XK_l, setmfact, {.f = +0.05} }, // zxcv
|
||||||
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
|
{ MODKEY, XK_i, incnmaster, {.i = +1 } },
|
||||||
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
|
{ MODKEY, XK_d, incnmaster, {.i = -1 } },
|
||||||
{ MODKEY, XK_h, setmfact, {.f = -0.05} },
|
|
||||||
{ MODKEY, XK_l, setmfact, {.f = +0.05} },
|
|
||||||
{ MODKEY|ShiftMask, XK_Return, zoom, {0} }, /* swap current and master clients */
|
{ MODKEY|ShiftMask, XK_Return, zoom, {0} }, /* swap current and master clients */
|
||||||
{ MODKEY, XK_comma, setlayout, {.v = &layouts[0]} },
|
{ MODKEY, XK_comma, setlayout, {.v = &layouts[0]} },
|
||||||
{ MODKEY, XK_period, setlayout, {.v = &layouts[1]} },
|
{ MODKEY, XK_period, setlayout, {.v = &layouts[1]} },
|
||||||
@@ -135,10 +137,11 @@ static const Key keys[] = {
|
|||||||
TAGKEYS( XK_0, 9)
|
TAGKEYS( XK_0, 9)
|
||||||
{ MODKEY, XK_q, killclient, {0} },
|
{ MODKEY, XK_q, killclient, {0} },
|
||||||
{ MODKEY|ShiftMask, XK_q, quit, {0} },
|
{ MODKEY|ShiftMask, XK_q, quit, {0} },
|
||||||
{ MODKEY, XK_space, spawn, {.v = dmenucmd } },
|
|
||||||
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
|
{ MODKEY, XK_Return, spawn, {.v = termcmd } },
|
||||||
{ MODKEY, XK_b, spawn, {.v = (const char*[]){ BROWSER_CMD, NULL } } },
|
{ MODKEY, XK_space, spawn, {.v = dmenucmd } },
|
||||||
{ MODKEY, XK_s, spawn, SHCMD(TERMINAL_CMD " -e " SYSTEM_MONITOR) },
|
{ MODKEY, XK_s, spawn, SHCMD(TERMINAL_CMD " -e " SYSTEM_MONITOR) },
|
||||||
|
{ MODKEY|ShiftMask, XK_b, spawn, {.v = (const char*[]){ BROWSER_CMD, NULL } } },
|
||||||
|
{ MODKEY, XK_b, spawn, SHCMD(TERMINAL_CMD " -e bookmark-find") },
|
||||||
};
|
};
|
||||||
|
|
||||||
/* button definitions */
|
/* button definitions */
|
||||||
|
|||||||
Reference in New Issue
Block a user