annotate config.default.h @ 3:faa4cb9d7bd6

add TASKBAR and CLICK_TO_FOCUS
author paulo@localhost
date Thu, 23 Apr 2009 02:43:13 -0700
parents
children
rev   line source
paulo@0 1 /* (C)opyright MMVI-MMVII Anselm R. Garbe <garbeam at gmail dot com>
paulo@0 2 * See LICENSE file for license details.
paulo@0 3 */
paulo@0 4
paulo@0 5 /* appearance */
paulo@0 6 #define BORDERPX 1
paulo@0 7 #define FONT "-*-fixed-medium-r-normal-*-13-*-*-*-*-*-*-*"
paulo@0 8 #define NORMBORDERCOLOR "#dddddd"
paulo@0 9 #define NORMBGCOLOR "#eeeeee"
paulo@0 10 #define NORMFGCOLOR "#222222"
paulo@0 11 #define SELBORDERCOLOR "#ff0000"
paulo@0 12 #define SELBGCOLOR "#006699"
paulo@0 13 #define SELFGCOLOR "#ffffff"
paulo@0 14 #define TOPBAR True /* False */
paulo@0 15
paulo@0 16 /* behavior */
paulo@0 17 #define SNAP 20 /* pixel */
paulo@0 18 #define TAGS \
paulo@0 19 const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", NULL };
paulo@0 20 /* Query class:instance:title for regex matching info with following command:
paulo@0 21 * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */
paulo@0 22 #define RULES \
paulo@0 23 static Rule rule[] = { \
paulo@0 24 /* class:instance:title regex tags regex isversatile */ \
paulo@0 25 { "Gimp", NULL, True }, \
paulo@0 26 { "MPlayer", NULL, True }, \
paulo@0 27 { "Acroread", NULL, True }, \
paulo@0 28 };
paulo@0 29
paulo@0 30 /* layout(s) */
paulo@0 31 #define LAYOUTS \
paulo@0 32 static Layout layout[] = { \
paulo@0 33 /* symbol function */ \
paulo@0 34 { "[]=", tile }, /* first entry is default */ \
paulo@0 35 { "><>", versatile }, \
paulo@0 36 };
paulo@0 37 #define MASTER 600 /* per thousand */
paulo@0 38 #define NMASTER 1 /* clients in master area */
paulo@0 39
paulo@0 40 /* key definitions */
paulo@0 41 #define MODKEY Mod1Mask
paulo@0 42 #define KEYS \
paulo@0 43 static Key key[] = { \
paulo@0 44 /* modifier key function argument */ \
paulo@0 45 { MODKEY|ShiftMask, XK_Return, spawn, { .cmd = "exec xterm" } }, \
paulo@0 46 { MODKEY, XK_Tab, focusnext, { 0 } }, \
paulo@0 47 { MODKEY|ShiftMask, XK_Tab, focusprev, { 0 } }, \
paulo@0 48 { MODKEY, XK_Return, zoom, { 0 } }, \
paulo@0 49 { MODKEY, XK_g, resizemaster, { .i = 15 } }, \
paulo@0 50 { MODKEY, XK_s, resizemaster, { .i = -15 } }, \
paulo@0 51 { MODKEY, XK_i, incnmaster, { .i = 1 } }, \
paulo@0 52 { MODKEY, XK_d, incnmaster, { .i = -1 } }, \
paulo@0 53 { MODKEY|ShiftMask, XK_0, tag, { .i = -1 } }, \
paulo@0 54 { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \
paulo@0 55 { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \
paulo@0 56 { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \
paulo@0 57 { MODKEY|ShiftMask, XK_4, tag, { .i = 3 } }, \
paulo@0 58 { MODKEY|ShiftMask, XK_5, tag, { .i = 4 } }, \
paulo@0 59 { MODKEY|ShiftMask, XK_6, tag, { .i = 5 } }, \
paulo@0 60 { MODKEY|ShiftMask, XK_7, tag, { .i = 6 } }, \
paulo@0 61 { MODKEY|ShiftMask, XK_8, tag, { .i = 7 } }, \
paulo@0 62 { MODKEY|ShiftMask, XK_9, tag, { .i = 8 } }, \
paulo@0 63 { MODKEY|ControlMask|ShiftMask, XK_1, toggletag, { .i = 0 } }, \
paulo@0 64 { MODKEY|ControlMask|ShiftMask, XK_2, toggletag, { .i = 1 } }, \
paulo@0 65 { MODKEY|ControlMask|ShiftMask, XK_3, toggletag, { .i = 2 } }, \
paulo@0 66 { MODKEY|ControlMask|ShiftMask, XK_4, toggletag, { .i = 3 } }, \
paulo@0 67 { MODKEY|ControlMask|ShiftMask, XK_5, toggletag, { .i = 4 } }, \
paulo@0 68 { MODKEY|ControlMask|ShiftMask, XK_6, toggletag, { .i = 5 } }, \
paulo@0 69 { MODKEY|ControlMask|ShiftMask, XK_7, toggletag, { .i = 6 } }, \
paulo@0 70 { MODKEY|ControlMask|ShiftMask, XK_8, toggletag, { .i = 7 } }, \
paulo@0 71 { MODKEY|ControlMask|ShiftMask, XK_9, toggletag, { .i = 8 } }, \
paulo@0 72 { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \
paulo@0 73 { MODKEY, XK_space, setlayout, { .i = -1 } }, \
paulo@0 74 { MODKEY|ShiftMask, XK_space, toggleversatile,{ 0 } }, \
paulo@0 75 { MODKEY, XK_0, view, { .i = -1 } }, \
paulo@0 76 { MODKEY, XK_1, view, { .i = 0 } }, \
paulo@0 77 { MODKEY, XK_2, view, { .i = 1 } }, \
paulo@0 78 { MODKEY, XK_3, view, { .i = 2 } }, \
paulo@0 79 { MODKEY, XK_4, view, { .i = 3 } }, \
paulo@0 80 { MODKEY, XK_5, view, { .i = 4 } }, \
paulo@0 81 { MODKEY, XK_6, view, { .i = 5 } }, \
paulo@0 82 { MODKEY, XK_7, view, { .i = 6 } }, \
paulo@0 83 { MODKEY, XK_8, view, { .i = 7 } }, \
paulo@0 84 { MODKEY, XK_9, view, { .i = 8 } }, \
paulo@0 85 { MODKEY|ControlMask, XK_1, toggleview, { .i = 0 } }, \
paulo@0 86 { MODKEY|ControlMask, XK_2, toggleview, { .i = 1 } }, \
paulo@0 87 { MODKEY|ControlMask, XK_3, toggleview, { .i = 2 } }, \
paulo@0 88 { MODKEY|ControlMask, XK_4, toggleview, { .i = 3 } }, \
paulo@0 89 { MODKEY|ControlMask, XK_5, toggleview, { .i = 4 } }, \
paulo@0 90 { MODKEY|ControlMask, XK_6, toggleview, { .i = 5 } }, \
paulo@0 91 { MODKEY|ControlMask, XK_7, toggleview, { .i = 6 } }, \
paulo@0 92 { MODKEY|ControlMask, XK_8, toggleview, { .i = 7 } }, \
paulo@0 93 { MODKEY|ControlMask, XK_9, toggleview, { .i = 8 } }, \
paulo@0 94 { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \
paulo@0 95 };