diff options
| author | arg@10ksloc.org <unknown> | 2006-08-02 16:46:59 +0200 |
|---|---|---|
| committer | arg@10ksloc.org <unknown> | 2006-08-02 16:46:59 +0200 |
| commit | b515765216c46246358256da6098ea2c07a93c84 (patch) | |
| tree | eb4e3cac1b421f4a386f879d76638a23f8db225e | |
| parent | added Acroread.* and MPlayer.* to config.arg.h rules (diff) | |
| download | dwm-b515765216c46246358256da6098ea2c07a93c84.tar.gz dwm-b515765216c46246358256da6098ea2c07a93c84.zip | |
removed the CONFIG variable from config.mk, renamed config.h into config.default.h, after first clone/extract one needs to copy config.default.h to config.h, that is easier than always heavy typing make CONFIG=blafasel
Diffstat (limited to '')
| -rw-r--r-- | README | 6 | ||||
| -rw-r--r-- | config.default.h | 62 | ||||
| -rw-r--r-- | config.mk | 7 | ||||
| -rw-r--r-- | dwm.h | 2 |
4 files changed, 66 insertions, 11 deletions
| @@ -16,13 +16,9 @@ the /usr/local namespace by default). | |||
| 16 | Afterwards enter the following command to build and install dwm (if | 16 | Afterwards enter the following command to build and install dwm (if |
| 17 | necessary as root): | 17 | necessary as root): |
| 18 | 18 | ||
| 19 | cp config.default.h config.h | ||
| 19 | make clean install | 20 | make clean install |
| 20 | 21 | ||
| 21 | If you want to use a customized config.h, you can use the following | ||
| 22 | command for installing dwm: | ||
| 23 | |||
| 24 | make CONFIG=<your-config>.h clean install | ||
| 25 | |||
| 26 | 22 | ||
| 27 | Running dwm | 23 | Running dwm |
| 28 | ----------- | 24 | ----------- |
diff --git a/config.default.h b/config.default.h new file mode 100644 index 0000000..1e8cb39 --- /dev/null +++ b/config.default.h | |||
| @@ -0,0 +1,62 @@ | |||
| 1 | /* | ||
| 2 | * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com> | ||
| 3 | * See LICENSE file for license details. | ||
| 4 | */ | ||
| 5 | |||
| 6 | enum { Tfnord, Tdev, Tnet, Twork, Tmisc, TLast }; | ||
| 7 | #define TAGS \ | ||
| 8 | char *tags[TLast] = { \ | ||
| 9 | [Tfnord] = "fnord", \ | ||
| 10 | [Tdev] = "dev", \ | ||
| 11 | [Tnet] = "net", \ | ||
| 12 | [Twork] = "work", \ | ||
| 13 | [Tmisc] = "misc", \ | ||
| 14 | }; | ||
| 15 | |||
| 16 | #define DEFMODE dotile /* dofloat */ | ||
| 17 | #define DEFTAG Tdev | ||
| 18 | #define FONT "fixed" | ||
| 19 | #define BGCOLOR "#666699" | ||
| 20 | #define FGCOLOR "#eeeeee" | ||
| 21 | #define BORDERCOLOR "#9999CC" | ||
| 22 | #define MODKEY Mod1Mask | ||
| 23 | #define NUMLOCKMASK Mod2Mask | ||
| 24 | #define MASTERW 52 /* percent */ | ||
| 25 | |||
| 26 | #define KEYS \ | ||
| 27 | const char *term[] = { "xterm", NULL }; \ | ||
| 28 | static Key key[] = { \ | ||
| 29 | /* modifier key function arguments */ \ | ||
| 30 | { MODKEY, XK_0, view, { .i = Tfnord } }, \ | ||
| 31 | { MODKEY, XK_1, view, { .i = Tdev } }, \ | ||
| 32 | { MODKEY, XK_2, view, { .i = Tnet } }, \ | ||
| 33 | { MODKEY, XK_3, view, { .i = Twork } }, \ | ||
| 34 | { MODKEY, XK_4, view, { .i = Tmisc} }, \ | ||
| 35 | { MODKEY, XK_h, viewprev, { 0 } }, \ | ||
| 36 | { MODKEY, XK_j, focusnext, { 0 } }, \ | ||
| 37 | { MODKEY, XK_k, focusprev, { 0 } }, \ | ||
| 38 | { MODKEY, XK_l, viewnext, { 0 } }, \ | ||
| 39 | { MODKEY, XK_m, togglemax, { 0 } }, \ | ||
| 40 | { MODKEY, XK_space, togglemode, { 0 } }, \ | ||
| 41 | { MODKEY, XK_Return, zoom, { 0 } }, \ | ||
| 42 | { MODKEY|ControlMask, XK_0, appendtag, { .i = Tfnord } }, \ | ||
| 43 | { MODKEY|ControlMask, XK_1, appendtag, { .i = Tdev } }, \ | ||
| 44 | { MODKEY|ControlMask, XK_2, appendtag, { .i = Tnet } }, \ | ||
| 45 | { MODKEY|ControlMask, XK_3, appendtag, { .i = Twork } }, \ | ||
| 46 | { MODKEY|ControlMask, XK_4, appendtag, { .i = Tmisc } }, \ | ||
| 47 | { MODKEY|ShiftMask, XK_0, replacetag, { .i = Tfnord } }, \ | ||
| 48 | { MODKEY|ShiftMask, XK_1, replacetag, { .i = Tdev } }, \ | ||
| 49 | { MODKEY|ShiftMask, XK_2, replacetag, { .i = Tnet } }, \ | ||
| 50 | { MODKEY|ShiftMask, XK_3, replacetag, { .i = Twork } }, \ | ||
| 51 | { MODKEY|ShiftMask, XK_4, replacetag, { .i = Tmisc } }, \ | ||
| 52 | { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \ | ||
| 53 | { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ | ||
| 54 | { MODKEY|ShiftMask, XK_Return, spawn, { .argv = term } }, \ | ||
| 55 | }; | ||
| 56 | |||
| 57 | #define RULES \ | ||
| 58 | static Rule rule[] = { \ | ||
| 59 | /* class:instance tags isfloat */ \ | ||
| 60 | { "Firefox.*", { [Tnet] = "net" }, False }, \ | ||
| 61 | { "Gimp.*", { 0 }, True}, \ | ||
| 62 | }; | ||
| @@ -3,9 +3,6 @@ VERSION = 0.6 | |||
| 3 | 3 | ||
| 4 | # Customize below to fit your system | 4 | # Customize below to fit your system |
| 5 | 5 | ||
| 6 | # configheader | ||
| 7 | CONFIG = config.h | ||
| 8 | |||
| 9 | # paths | 6 | # paths |
| 10 | PREFIX = /usr/local | 7 | PREFIX = /usr/local |
| 11 | MANPREFIX = ${PREFIX}/share/man | 8 | MANPREFIX = ${PREFIX}/share/man |
| @@ -18,9 +15,9 @@ INCS = -I/usr/lib -I${X11INC} | |||
| 18 | LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 | 15 | LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 |
| 19 | 16 | ||
| 20 | # flags | 17 | # flags |
| 21 | CFLAGS = -O3 ${INCS} -DVERSION=\"${VERSION}\" -DCONFIG=\"${CONFIG}\" | 18 | CFLAGS = -O3 ${INCS} -DVERSION=\"${VERSION}\" |
| 22 | LDFLAGS = ${LIBS} | 19 | LDFLAGS = ${LIBS} |
| 23 | #CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" -DCONFIG=\"${CONFIG}\" | 20 | #CFLAGS = -g -Wall -O2 ${INCS} -DVERSION=\"${VERSION}\" |
| 24 | #LDFLAGS = -g ${LIBS} | 21 | #LDFLAGS = -g ${LIBS} |
| 25 | 22 | ||
| 26 | # compiler | 23 | # compiler |
| @@ -3,7 +3,7 @@ | |||
| 3 | * See LICENSE file for license details. | 3 | * See LICENSE file for license details. |
| 4 | */ | 4 | */ |
| 5 | 5 | ||
| 6 | #include CONFIG | 6 | #include "config.h" |
| 7 | #include <X11/Xlib.h> | 7 | #include <X11/Xlib.h> |
| 8 | 8 | ||
| 9 | /* mask shorthands, used in event.c and client.c */ | 9 | /* mask shorthands, used in event.c and client.c */ |
