dwm-meillo

view config.default.h @ 263:118d3e010e5e

made shortcuts like proposed by Sander, renamed viewextend to toggleview (more clear)
author Anselm R.Garbe <arg@10ksloc.org>
date Sun, 13 Aug 2006 17:58:06 +0200
parents d659a2dce2b5
children 8a8ea74e1b87
line source
1 /*
2 * (C)opyright MMVI Anselm R. Garbe <garbeam at gmail dot com>
3 * See LICENSE file for license details.
4 */
6 #define TAGS \
7 const char *tags[] = { "0", "1", "2", "3", "4", NULL };
9 #define DEFMODE dotile /* dofloat */
10 #define DEFTAG 1 /* index */
11 #define FONT "fixed"
12 #define BGCOLOR "#666699"
13 #define FGCOLOR "#eeeeee"
14 #define BORDERCOLOR "#9999CC"
15 #define MODKEY Mod1Mask
16 #define NUMLOCKMASK Mod2Mask
17 #define MASTERW 60 /* percent */
19 #define KEYS \
20 static Key key[] = { \
21 /* modifier key function arguments */ \
22 { MODKEY, XK_0, view, { .i = 0 } }, \
23 { MODKEY, XK_1, view, { .i = 1 } }, \
24 { MODKEY, XK_2, view, { .i = 2 } }, \
25 { MODKEY, XK_3, view, { .i = 3 } }, \
26 { MODKEY, XK_4, view, { .i = 4 } }, \
27 { MODKEY, XK_h, viewprev, { 0 } }, \
28 { MODKEY, XK_j, focusnext, { 0 } }, \
29 { MODKEY, XK_k, focusprev, { 0 } }, \
30 { MODKEY, XK_l, viewnext, { 0 } }, \
31 { MODKEY, XK_m, togglemax, { 0 } }, \
32 { MODKEY, XK_space, togglemode, { 0 } }, \
33 { MODKEY, XK_Return, zoom, { 0 } }, \
34 { MODKEY|ControlMask, XK_0, toggleview, { .i = 0 } }, \
35 { MODKEY|ControlMask, XK_1, toggleview, { .i = 1 } }, \
36 { MODKEY|ControlMask, XK_2, toggleview, { .i = 2 } }, \
37 { MODKEY|ControlMask, XK_3, toggleview, { .i = 3 } }, \
38 { MODKEY|ControlMask, XK_4, toggleview, { .i = 4 } }, \
39 { MODKEY|ShiftMask, XK_0, replacetag, { .i = 0 } }, \
40 { MODKEY|ShiftMask, XK_1, replacetag, { .i = 1 } }, \
41 { MODKEY|ShiftMask, XK_2, replacetag, { .i = 2 } }, \
42 { MODKEY|ShiftMask, XK_3, replacetag, { .i = 3 } }, \
43 { MODKEY|ShiftMask, XK_4, replacetag, { .i = 4 } }, \
44 { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \
45 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
46 { MODKEY|ShiftMask, XK_Return, spawn, { .cmd = "exec xterm" } }, \
47 { MODKEY|ControlMask|ShiftMask, XK_0, appendtag, { .i = 0 } }, \
48 { MODKEY|ControlMask|ShiftMask, XK_1, appendtag, { .i = 1 } }, \
49 { MODKEY|ControlMask|ShiftMask, XK_2, appendtag, { .i = 2 } }, \
50 { MODKEY|ControlMask|ShiftMask, XK_3, appendtag, { .i = 3 } }, \
51 { MODKEY|ControlMask|ShiftMask, XK_4, appendtag, { .i = 4 } }, \
52 };
54 #define RULES \
55 static Rule rule[] = { \
56 /* class:instance regex tags regex isfloat */ \
57 { "Firefox.*", "2", False }, \
58 { "Gimp.*", NULL, True}, \
59 };