author | Anselm R Garbe <garbeam@gmail.com> |
Wed, 11 Jun 2008 09:34:00 +0100 | |
changeset 1261 | 218a33808046 |
parent 1260 | 2d3d08d2dd19 |
child 1265 | f3b595da1c6b |
permissions | -rw-r--r-- |
910
c13cb8c6b7a5
referred to LICENSE file
Anselm R. Garbe <arg@suckless.org>
parents:
909
diff
changeset
|
1 |
/* See LICENSE file for copyright and license details. */ |
146
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
2 |
|
798
2c42d9e7f79c
cleaned up and commented the config.*.h
Anselm R. Garbe <arg@suckless.org>
parents:
788
diff
changeset
|
3 |
/* appearance */ |
1199
94ecece0f25d
renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents:
1192
diff
changeset
|
4 |
#define FONT "-*-terminus-medium-r-normal-*-14-*-*-*-*-*-*-*" |
94ecece0f25d
renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents:
1192
diff
changeset
|
5 |
#define NORMBORDERCOLOR "#cccccc" |
94ecece0f25d
renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents:
1192
diff
changeset
|
6 |
#define NORMBGCOLOR "#cccccc" |
94ecece0f25d
renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents:
1192
diff
changeset
|
7 |
#define NORMFGCOLOR "#000000" |
94ecece0f25d
renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents:
1192
diff
changeset
|
8 |
#define SELBORDERCOLOR "#0066ff" |
94ecece0f25d
renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents:
1192
diff
changeset
|
9 |
#define SELBGCOLOR "#0066ff" |
94ecece0f25d
renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents:
1192
diff
changeset
|
10 |
#define SELFGCOLOR "#ffffff" |
1260
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
11 |
static uint borderpx = 1; /* border pixel of windows */ |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
12 |
static uint snap = 32; /* snap pixel */ |
1261
218a33808046
integrated Peter Hartlich's patch, removed const char *c from union, simplified togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents:
1260
diff
changeset
|
13 |
static Bool showbar = True; /* False means no bar */ |
218a33808046
integrated Peter Hartlich's patch, removed const char *c from union, simplified togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents:
1260
diff
changeset
|
14 |
static Bool topbar = True; /* False means bottom bar */ |
146
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
15 |
|
1117
fac7660be3de
renamed monocle into maxmise, documented the keybindings in dwm(1)
anselm@anselm1
parents:
1116
diff
changeset
|
16 |
/* tagging */ |
1260
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
17 |
static const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" }; |
1106
084b17f96d9b
proceeded, though we still miss a real Tag struct
anselm@anselm1
parents:
1105
diff
changeset
|
18 |
|
1260
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
19 |
static Rule rules[] = { |
1199
94ecece0f25d
renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents:
1192
diff
changeset
|
20 |
/* class instance title tags ref isfloating */ |
1224
47496de04028
applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents:
1220
diff
changeset
|
21 |
{ "Gimp", NULL, NULL, 0, True }, |
47496de04028
applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents:
1220
diff
changeset
|
22 |
{ "Firefox", NULL, NULL, 1 << 8, True }, |
798
2c42d9e7f79c
cleaned up and commented the config.*.h
Anselm R. Garbe <arg@suckless.org>
parents:
788
diff
changeset
|
23 |
}; |
787
9728e9e85f93
changed some odering in config*.h
Anselm R. Garbe <arg@suckless.org>
parents:
785
diff
changeset
|
24 |
|
1190
c8eaba1445a4
removed Geom stuff, introduced updategeom() again, still view is somewhat broken?
Anselm R Garbe <garbeam@gmail.com>
parents:
1189
diff
changeset
|
25 |
/* layout(s) */ |
1260
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
26 |
static float mfact = 0.55; |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
27 |
static Bool resizehints = False; /* False means respect size hints in tiled resizals */ |
1209
c2dc0bd92158
recent changes, introduced togglebar, changed some defines into variable declarations where possible
Anselm R Garbe <garbeam@gmail.com>
parents:
1207
diff
changeset
|
28 |
|
1260
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
29 |
static Layout layouts[] = { |
1237
7af79b380a77
removed Layout->updategeom, unnecessary
Anselm R Garbe <garbeam@gmail.com>
parents:
1235
diff
changeset
|
30 |
/* symbol arrange function */ |
7af79b380a77
removed Layout->updategeom, unnecessary
Anselm R Garbe <garbeam@gmail.com>
parents:
1235
diff
changeset
|
31 |
{ "[]=", tile }, /* first entry is default */ |
7af79b380a77
removed Layout->updategeom, unnecessary
Anselm R Garbe <garbeam@gmail.com>
parents:
1235
diff
changeset
|
32 |
{ "><>", NULL }, /* no layout function means floating behavior */ |
787
9728e9e85f93
changed some odering in config*.h
Anselm R. Garbe <arg@suckless.org>
parents:
785
diff
changeset
|
33 |
}; |
9728e9e85f93
changed some odering in config*.h
Anselm R. Garbe <arg@suckless.org>
parents:
785
diff
changeset
|
34 |
|
798
2c42d9e7f79c
cleaned up and commented the config.*.h
Anselm R. Garbe <arg@suckless.org>
parents:
788
diff
changeset
|
35 |
/* key definitions */ |
1199
94ecece0f25d
renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents:
1192
diff
changeset
|
36 |
#define MODKEY Mod1Mask |
1235
13f86ee1a8e6
applied yiyus domax patch with slight modifications
Anselm R Garbe <garbeam@gmail.com>
parents:
1232
diff
changeset
|
37 |
#define TAGKEYS(KEY,TAG) \ |
13f86ee1a8e6
applied yiyus domax patch with slight modifications
Anselm R Garbe <garbeam@gmail.com>
parents:
1232
diff
changeset
|
38 |
{ MODKEY, KEY, view, TAG }, \ |
13f86ee1a8e6
applied yiyus domax patch with slight modifications
Anselm R Garbe <garbeam@gmail.com>
parents:
1232
diff
changeset
|
39 |
{ MODKEY|ControlMask, KEY, toggleview, TAG }, \ |
13f86ee1a8e6
applied yiyus domax patch with slight modifications
Anselm R Garbe <garbeam@gmail.com>
parents:
1232
diff
changeset
|
40 |
{ MODKEY|ShiftMask, KEY, tag, TAG }, \ |
13f86ee1a8e6
applied yiyus domax patch with slight modifications
Anselm R Garbe <garbeam@gmail.com>
parents:
1232
diff
changeset
|
41 |
{ MODKEY|ControlMask|ShiftMask, KEY, toggletag, TAG }, |
13f86ee1a8e6
applied yiyus domax patch with slight modifications
Anselm R Garbe <garbeam@gmail.com>
parents:
1232
diff
changeset
|
42 |
|
1260
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
43 |
static Key keys[] = { |
1199
94ecece0f25d
renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents:
1192
diff
changeset
|
44 |
/* modifier key function argument */ |
1261
218a33808046
integrated Peter Hartlich's patch, removed const char *c from union, simplified togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents:
1260
diff
changeset
|
45 |
{ MODKEY, XK_p, spawn, {.v = (char *[]){"dmenu_run", "-fn", FONT, "-nb", NORMBGCOLOR, "-nf", NORMFGCOLOR, "-sb", SELBGCOLOR, "-sf", SELFGCOLOR, NULL}} }, |
218a33808046
integrated Peter Hartlich's patch, removed const char *c from union, simplified togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents:
1260
diff
changeset
|
46 |
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = (char *[]){"uxterm", NULL}} }, |
1260
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
47 |
{ MODKEY, XK_b, togglebar, {0}}, |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
48 |
{ MODKEY, XK_j, focusstack, {.i = +1 }}, |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
49 |
{ MODKEY, XK_k, focusstack, {.i = -1 }}, |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
50 |
{ MODKEY, XK_h, setmfact, {.f = -0.05}}, |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
51 |
{ MODKEY, XK_l, setmfact, {.f = +0.05}}, |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
52 |
{ MODKEY, XK_m, togglemax, {0}}, |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
53 |
{ MODKEY, XK_Return, zoom, {0}}, |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
54 |
{ MODKEY, XK_Tab, view, {0}}, |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
55 |
{ MODKEY|ShiftMask, XK_c, killclient, {0}}, |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
56 |
{ MODKEY, XK_space, togglelayout, {0}}, |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
57 |
{ MODKEY|ShiftMask, XK_space, togglefloating, {0}}, |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
58 |
{ MODKEY, XK_0, view, {.ui = ~0 } }, |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
59 |
{ MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
60 |
TAGKEYS( XK_1, {.ui = 1 << 0} ) |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
61 |
TAGKEYS( XK_2, {.ui = 1 << 1} ) |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
62 |
TAGKEYS( XK_3, {.ui = 1 << 2} ) |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
63 |
TAGKEYS( XK_4, {.ui = 1 << 3} ) |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
64 |
TAGKEYS( XK_5, {.ui = 1 << 4} ) |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
65 |
TAGKEYS( XK_6, {.ui = 1 << 5} ) |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
66 |
TAGKEYS( XK_7, {.ui = 1 << 6} ) |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
67 |
TAGKEYS( XK_8, {.ui = 1 << 7} ) |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
68 |
TAGKEYS( XK_9, {.ui = 1 << 8} ) |
2d3d08d2dd19
applied anydot's patchset.diff
Anselm R Garbe <garbeam@gmail.com>
parents:
1250
diff
changeset
|
69 |
{ MODKEY|ShiftMask, XK_q, quit, {0}}, |
146
f328ce9c558c
centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff
changeset
|
70 |
}; |