paulo@0: /* (C)opyright MMVI-MMVII Anselm R. Garbe paulo@0: * See LICENSE file for license details. paulo@0: */ paulo@0: paulo@0: /* appearance */ paulo@0: #define BORDERPX 1 paulo@0: #define FONT "6x9" paulo@0: #define NORMBORDERCOLOR "#aaaaaa" paulo@0: #define NORMBGCOLOR "#222222" paulo@0: #define NORMFGCOLOR "#eeeeee" paulo@0: #define SELBORDERCOLOR "#ff0000" paulo@0: #define SELBGCOLOR "#222222" paulo@0: #define SELFGCOLOR "#00ff00" paulo@0: #define TOPBAR True /* False */ paulo@0: paulo@0: /* behavior */ paulo@0: #define SNAP 10 /* pixel */ paulo@0: #define TAGS \ paulo@0: const char *tags[] = { "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", NULL }; paulo@0: /* Query class:instance:title for regex matching info with following command: paulo@0: * xprop | awk -F '"' '/^WM_CLASS/ { printf("%s:%s:",$4,$2) }; /^WM_NAME/ { printf("%s\n",$2) }' */ paulo@0: #define RULES \ paulo@0: static Rule rule[] = { \ paulo@0: /* class:instance:title regex tags regex isversatile */ \ paulo@0: { "Gimp", NULL, False }, \ paulo@0: { "MPlayer", NULL, False }, \ paulo@0: { "Acroread", NULL, False }, \ paulo@0: }; paulo@0: paulo@0: /* layout(s) */ paulo@0: #define LAYOUTS \ paulo@0: static Layout layout[] = { \ paulo@0: /* symbol function */ \ paulo@0: { " ", versatile }, \ paulo@0: { "@", spiral }, \ paulo@0: { "&", spiral_h }, \ paulo@0: { "X", monocle }, \ paulo@0: { "#", grid }, \ paulo@0: { "U", bstack }, \ paulo@0: { "!", tile }, \ paulo@0: /*{ "\\", cascade },*/ \ paulo@0: /* first entry is default */ \ paulo@0: }; paulo@0: #define MASTER 650 /* per thousand */ paulo@0: #define NMASTER 1 /* clients in master area */ paulo@0: paulo@0: /* key definitions */ paulo@0: #define MODKEY Mod4Mask paulo@0: #define KEYS \ paulo@0: static Key key[] = { \ paulo@0: /* modifier key function argument */ \ paulo@0: { MODKEY|ShiftMask, XK_Return, spawn, { .cmd = "/home/paulo/bin/myterm.sh" } }, \ paulo@0: { MODKEY, XK_backslash, spawn, { .cmd = "/home/paulo/bin/myterm.sh -e /home/paulo/bin/viclip.sh" } }, \ paulo@0: { MODKEY, XK_n, pushdown, { 0 } }, \ paulo@0: { MODKEY, XK_p, pushup, { 0 } }, \ paulo@0: { MODKEY, XK_Tab, focusnext, { 0 } }, \ paulo@0: { MODKEY|ShiftMask, XK_Tab, focusprev, { 0 } }, \ paulo@0: { MODKEY, XK_Return, zoom, { 0 } }, \ paulo@0: { MODKEY, XK_g, resizemaster, { .i = 15 } }, \ paulo@0: { MODKEY, XK_s, resizemaster, { .i = -15 } }, \ paulo@0: { MODKEY, XK_i, incnmaster, { .i = 1 } }, \ paulo@0: { MODKEY, XK_d, incnmaster, { .i = -1 } }, \ paulo@0: { MODKEY|ShiftMask, XK_grave, tag, { .i = -1 } }, \ paulo@0: { MODKEY|ShiftMask, XK_1, tag, { .i = 0 } }, \ paulo@0: { MODKEY|ShiftMask, XK_2, tag, { .i = 1 } }, \ paulo@0: { MODKEY|ShiftMask, XK_3, tag, { .i = 2 } }, \ paulo@0: { MODKEY|ShiftMask, XK_4, tag, { .i = 3 } }, \ paulo@0: { MODKEY|ShiftMask, XK_5, tag, { .i = 4 } }, \ paulo@0: { MODKEY|ShiftMask, XK_6, tag, { .i = 5 } }, \ paulo@0: { MODKEY|ShiftMask, XK_7, tag, { .i = 6 } }, \ paulo@0: { MODKEY|ShiftMask, XK_8, tag, { .i = 7 } }, \ paulo@0: { MODKEY|ShiftMask, XK_9, tag, { .i = 8 } }, \ paulo@0: { MODKEY|ShiftMask, XK_0, tag, { .i = 9 } }, \ paulo@0: { MODKEY|ControlMask|ShiftMask, XK_1, toggletag, { .i = 0 } }, \ paulo@0: { MODKEY|ControlMask|ShiftMask, XK_2, toggletag, { .i = 1 } }, \ paulo@0: { MODKEY|ControlMask|ShiftMask, XK_3, toggletag, { .i = 2 } }, \ paulo@0: { MODKEY|ControlMask|ShiftMask, XK_4, toggletag, { .i = 3 } }, \ paulo@0: { MODKEY|ControlMask|ShiftMask, XK_5, toggletag, { .i = 4 } }, \ paulo@0: { MODKEY|ControlMask|ShiftMask, XK_6, toggletag, { .i = 5 } }, \ paulo@0: { MODKEY|ControlMask|ShiftMask, XK_7, toggletag, { .i = 6 } }, \ paulo@0: { MODKEY|ControlMask|ShiftMask, XK_8, toggletag, { .i = 7 } }, \ paulo@0: { MODKEY|ControlMask|ShiftMask, XK_9, toggletag, { .i = 8 } }, \ paulo@0: { MODKEY|ControlMask|ShiftMask, XK_0, toggletag, { .i = 9 } }, \ paulo@0: { MODKEY|ShiftMask, XK_c, killclient, { 0 } }, \ paulo@0: { MODKEY, XK_space, setlayout, { .i = -1 } }, \ paulo@0: { MODKEY, XK_F1, setlayout, { .i = 0 } }, \ paulo@0: { MODKEY, XK_F2, setlayout, { .i = 1 } }, \ paulo@0: { MODKEY, XK_F3, setlayout, { .i = 2 } }, \ paulo@0: { MODKEY, XK_F4, setlayout, { .i = 3 } }, \ paulo@0: { MODKEY, XK_F5, setlayout, { .i = 4 } }, \ paulo@0: { MODKEY, XK_F6, setlayout, { .i = 5 } }, \ paulo@0: { MODKEY, XK_F7, setlayout, { .i = 6 } }, \ paulo@0: { MODKEY|ShiftMask, XK_space, toggleversatile,{ 0 } }, \ paulo@0: { MODKEY, XK_grave, view, { .i = -1 } }, \ paulo@0: { MODKEY, XK_1, view, { .i = 0 } }, \ paulo@0: { MODKEY, XK_2, view, { .i = 1 } }, \ paulo@0: { MODKEY, XK_3, view, { .i = 2 } }, \ paulo@0: { MODKEY, XK_4, view, { .i = 3 } }, \ paulo@0: { MODKEY, XK_5, view, { .i = 4 } }, \ paulo@0: { MODKEY, XK_6, view, { .i = 5 } }, \ paulo@0: { MODKEY, XK_7, view, { .i = 6 } }, \ paulo@0: { MODKEY, XK_8, view, { .i = 7 } }, \ paulo@0: { MODKEY, XK_9, view, { .i = 8 } }, \ paulo@0: { MODKEY, XK_0, view, { .i = 9 } }, \ paulo@0: { MODKEY, XK_BackSpace, last_view, { 0 } }, \ paulo@0: { MODKEY|ControlMask, XK_1, toggleview, { .i = 0 } }, \ paulo@0: { MODKEY|ControlMask, XK_2, toggleview, { .i = 1 } }, \ paulo@0: { MODKEY|ControlMask, XK_3, toggleview, { .i = 2 } }, \ paulo@0: { MODKEY|ControlMask, XK_4, toggleview, { .i = 3 } }, \ paulo@0: { MODKEY|ControlMask, XK_5, toggleview, { .i = 4 } }, \ paulo@0: { MODKEY|ControlMask, XK_6, toggleview, { .i = 5 } }, \ paulo@0: { MODKEY|ControlMask, XK_7, toggleview, { .i = 6 } }, \ paulo@0: { MODKEY|ControlMask, XK_8, toggleview, { .i = 7 } }, \ paulo@0: { MODKEY|ControlMask, XK_9, toggleview, { .i = 8 } }, \ paulo@0: { MODKEY|ControlMask, XK_0, toggleview, { .i = 9 } }, \ paulo@0: { MODKEY|ShiftMask, XK_q, quit, { 0 } }, \ paulo@0: { MODKEY, XK_h, moveresize, "-25x 0y 0w 0h" }, \ paulo@0: { MODKEY, XK_l, moveresize, "25x 0y 0w 0h" }, \ paulo@0: { MODKEY, XK_j, moveresize, "0x 25y 0w 0h" }, \ paulo@0: { MODKEY, XK_k, moveresize, "0x -25y 0w 0h" }, \ paulo@0: { MODKEY|ControlMask, XK_h, moveresize, "0X 0y 0w 0h" }, \ paulo@0: { MODKEY|ControlMask, XK_l, moveresize, "9000X 0y 0w 0h" }, \ paulo@0: { MODKEY|ControlMask, XK_j, moveresize, "0x 9000Y 0w 0h" }, \ paulo@0: { MODKEY|ControlMask, XK_k, moveresize, "0x 15Y 0w 0h" }, \ paulo@0: { MODKEY|ShiftMask, XK_h, moveresize, "0x 0y -25w 0h" }, \ paulo@0: { MODKEY|ShiftMask, XK_l, moveresize, "0x 0y 25w 0h" }, \ paulo@0: { MODKEY|ShiftMask, XK_j, moveresize, "0x 0y 0w 25h" }, \ paulo@0: { MODKEY|ShiftMask, XK_k, moveresize, "0x 0y 0w -25h" }, \ paulo@0: }; paulo@0: paulo@0: #define MAX_TASKS 10 /* max number of apps in taskbar */