config.def.h
author Anselm R Garbe <garbeam@gmail.com>
Thu, 22 May 2008 11:04:19 +0100
changeset 1224 47496de04028
parent 1220 6603d83d133d
child 1230 651d777eb239
permissions -rw-r--r--
applied Gottox bitmask + void *arg patch
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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"
1209
c2dc0bd92158 recent changes, introduced togglebar, changed some defines into variable declarations where possible
Anselm R Garbe <garbeam@gmail.com>
parents: 1207
diff changeset
    11
unsigned int borderpx  = 1;        /* border pixel of windows */
c2dc0bd92158 recent changes, introduced togglebar, changed some defines into variable declarations where possible
Anselm R Garbe <garbeam@gmail.com>
parents: 1207
diff changeset
    12
unsigned int snap      = 32;       /* snap pixel */
c2dc0bd92158 recent changes, introduced togglebar, changed some defines into variable declarations where possible
Anselm R Garbe <garbeam@gmail.com>
parents: 1207
diff changeset
    13
Bool showbar           = True;     /* False means no bar */
c2dc0bd92158 recent changes, introduced togglebar, changed some defines into variable declarations where possible
Anselm R Garbe <garbeam@gmail.com>
parents: 1207
diff changeset
    14
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 */
1118
e8efb587e751 renamed MAXLEN into MAXTAGLEN (backward compliance)
anselm@anselm1
parents: 1117
diff changeset
    17
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
1001
2477f818215c made all stuff non-static - so you can choose wether to use dwm the static or the extern way when extending it
arg@suckless.org
parents: 990
diff changeset
    19
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) */
1209
c2dc0bd92158 recent changes, introduced togglebar, changed some defines into variable declarations where possible
Anselm R Garbe <garbeam@gmail.com>
parents: 1207
diff changeset
    26
double mfact           = 0.55;
c2dc0bd92158 recent changes, introduced togglebar, changed some defines into variable declarations where possible
Anselm R Garbe <garbeam@gmail.com>
parents: 1207
diff changeset
    27
Bool resizehints       = True;     /* False means respect size hints in tiled resizals */
c2dc0bd92158 recent changes, introduced togglebar, changed some defines into variable declarations where possible
Anselm R Garbe <garbeam@gmail.com>
parents: 1207
diff changeset
    28
1001
2477f818215c made all stuff non-static - so you can choose wether to use dwm the static or the extern way when extending it
arg@suckless.org
parents: 990
diff changeset
    29
Layout layouts[] = {
1203
710f0fc31764 moved all tile()-related stuff into tile.c which is included from config.def.h, the default dwm is now nearly independent from the arrange() algorithm in use
Anselm R Garbe <garbeam@gmail.com>
parents: 1202
diff changeset
    30
	/* symbol     arrange  geom */
1207
055bf865d22f removed the <M> togglelayout call
Anselm R Garbe <garbeam@gmail.com>
parents: 1205
diff changeset
    31
	{ "[]=",      tile,    updatetilegeom }, /* first entry is default */
1220
6603d83d133d merged tile.c again into dwm.c
anselm@anselm1
parents: 1209
diff changeset
    32
	{ "><>",      NULL,    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
1060
9df583e2c03c Using a new tags definition (const char [][MAXTAGLEN] - thanks go to Szabolcs!
Anselm R. Garbe <garbeam@gmail.com>
parents: 1059
diff changeset
    37
Key keys[] = {
1199
94ecece0f25d renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents: 1192
diff changeset
    38
	/* modifier                     key        function        argument */
1224
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    39
	{ MODKEY,                       XK_p,      spawn,          (char *)"exec dmenu_run -fn '"FONT"' -nb '"NORMBGCOLOR"' -nf '"NORMFGCOLOR"' -sb '"SELBGCOLOR"' -sf '"SELFGCOLOR"'" },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    40
	{ MODKEY|ShiftMask,             XK_Return, spawn,          (char *)"exec uxterm" },
1209
c2dc0bd92158 recent changes, introduced togglebar, changed some defines into variable declarations where possible
Anselm R Garbe <garbeam@gmail.com>
parents: 1207
diff changeset
    41
	{ MODKEY,                       XK_b,      togglebar,      NULL },
1199
94ecece0f25d renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents: 1192
diff changeset
    42
	{ MODKEY,                       XK_j,      focusnext,      NULL },
94ecece0f25d renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents: 1192
diff changeset
    43
	{ MODKEY,                       XK_k,      focusprev,      NULL },
1224
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    44
	{ MODKEY,                       XK_h,      setmfact,       (double[]){+0.05} },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    45
	{ MODKEY,                       XK_l,      setmfact,       (double[]){-0.05} },
1199
94ecece0f25d renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents: 1192
diff changeset
    46
	{ MODKEY,                       XK_Return, zoom,           NULL },
94ecece0f25d renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents: 1192
diff changeset
    47
	{ MODKEY,                       XK_Tab,    viewprevtag,    NULL },
94ecece0f25d renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents: 1192
diff changeset
    48
	{ MODKEY|ShiftMask,             XK_c,      killclient,     NULL },
94ecece0f25d renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents: 1192
diff changeset
    49
	{ MODKEY,                       XK_space,  togglelayout,   NULL },
94ecece0f25d renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents: 1192
diff changeset
    50
	{ MODKEY|ShiftMask,             XK_space,  togglefloating, NULL },
1224
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    51
	{ MODKEY,                       XK_0,      view,           (int[]){ ~0 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    52
	{ MODKEY,                       XK_1,      view,           (int[]){ 1 << 0 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    53
	{ MODKEY,                       XK_2,      view,           (int[]){ 1 << 1 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    54
	{ MODKEY,                       XK_3,      view,           (int[]){ 1 << 2 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    55
	{ MODKEY,                       XK_4,      view,           (int[]){ 1 << 3 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    56
	{ MODKEY,                       XK_5,      view,           (int[]){ 1 << 4 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    57
	{ MODKEY,                       XK_6,      view,           (int[]){ 1 << 5 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    58
	{ MODKEY,                       XK_7,      view,           (int[]){ 1 << 6 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    59
	{ MODKEY,                       XK_8,      view,           (int[]){ 1 << 7 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    60
	{ MODKEY,                       XK_9,      view,           (int[]){ 1 << 8 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    61
	{ MODKEY|ControlMask,           XK_1,      toggleview,     (int[]){ 1 << 0 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    62
	{ MODKEY|ControlMask,           XK_2,      toggleview,     (int[]){ 1 << 1 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    63
	{ MODKEY|ControlMask,           XK_3,      toggleview,     (int[]){ 1 << 2 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    64
	{ MODKEY|ControlMask,           XK_4,      toggleview,     (int[]){ 1 << 3 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    65
	{ MODKEY|ControlMask,           XK_5,      toggleview,     (int[]){ 1 << 4 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    66
	{ MODKEY|ControlMask,           XK_6,      toggleview,     (int[]){ 1 << 5 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    67
	{ MODKEY|ControlMask,           XK_7,      toggleview,     (int[]){ 1 << 6 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    68
	{ MODKEY|ControlMask,           XK_8,      toggleview,     (int[]){ 1 << 7 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    69
	{ MODKEY|ControlMask,           XK_9,      toggleview,     (int[]){ 1 << 8 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    70
	{ MODKEY|ShiftMask,             XK_0,      tag,            (int[]){ ~0 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    71
	{ MODKEY|ShiftMask,             XK_1,      tag,            (int[]){ 1 << 0 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    72
	{ MODKEY|ShiftMask,             XK_2,      tag,            (int[]){ 1 << 1 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    73
	{ MODKEY|ShiftMask,             XK_3,      tag,            (int[]){ 1 << 2 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    74
	{ MODKEY|ShiftMask,             XK_4,      tag,            (int[]){ 1 << 3 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    75
	{ MODKEY|ShiftMask,             XK_5,      tag,            (int[]){ 1 << 4 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    76
	{ MODKEY|ShiftMask,             XK_6,      tag,            (int[]){ 1 << 5 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    77
	{ MODKEY|ShiftMask,             XK_7,      tag,            (int[]){ 1 << 6 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    78
	{ MODKEY|ShiftMask,             XK_8,      tag,            (int[]){ 1 << 7 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    79
	{ MODKEY|ShiftMask,             XK_9,      tag,            (int[]){ 1 << 8 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    80
	{ MODKEY|ControlMask|ShiftMask, XK_1,      toggletag,      (int[]){ 1 << 0 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    81
	{ MODKEY|ControlMask|ShiftMask, XK_2,      toggletag,      (int[]){ 1 << 1 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    82
	{ MODKEY|ControlMask|ShiftMask, XK_3,      toggletag,      (int[]){ 1 << 2 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    83
	{ MODKEY|ControlMask|ShiftMask, XK_4,      toggletag,      (int[]){ 1 << 3 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    84
	{ MODKEY|ControlMask|ShiftMask, XK_5,      toggletag,      (int[]){ 1 << 4 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    85
	{ MODKEY|ControlMask|ShiftMask, XK_6,      toggletag,      (int[]){ 1 << 5 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    86
	{ MODKEY|ControlMask|ShiftMask, XK_7,      toggletag,      (int[]){ 1 << 6 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    87
	{ MODKEY|ControlMask|ShiftMask, XK_8,      toggletag,      (int[]){ 1 << 7 } },
47496de04028 applied Gottox bitmask + void *arg patch
Anselm R Garbe <garbeam@gmail.com>
parents: 1220
diff changeset
    88
	{ MODKEY|ControlMask|ShiftMask, XK_9,      toggletag,      (int[]){ 1 << 8 } },
1199
94ecece0f25d renamed setlayout into togglelayout
Anselm R Garbe <garbeam@gmail.com>
parents: 1192
diff changeset
    89
	{ MODKEY|ShiftMask,             XK_q,      quit,           NULL },
146
f328ce9c558c centralized/externalized configuration to config.h
arg@10ksloc.org
parents:
diff changeset
    90
};