config.h (3178B)
1 /* See LICENSE file for copyright and license details. */ 2 3 /* appearance */ 4 static const char font[] = "monospace:size=9"; 5 static const char* normbgcolor = "#050a10"; 6 static const char* normfgcolor = "#777b8e"; 7 static const char* selbgcolor = "#1b364b"; 8 static const char* selfgcolor = "#eeeeee"; 9 static const char* urgbgcolor = "#892b2b"; 10 static const char* urgfgcolor = "#0a0a10"; 11 static const char before[] = "<"; 12 static const char after[] = ">"; 13 static const char titletrim[] = "..."; 14 static const int tabwidth = 200; 15 static const int sepwidth = 1; 16 static const Bool foreground = True; 17 static Bool urgentswitch = False; 18 static Bool focusnew = False; /* focus on a newly embedded window */ 19 static const Bool mainselectcol = True; /* only colour windows as selected 20 if main window selected */ 21 22 /* 23 * Where to place a new tab when it is opened. When npisrelative is True, 24 * then the current position is changed + newposition. If npisrelative 25 * is False, then newposition is an absolute position. 26 */ 27 static int newposition = 0; 28 static Bool npisrelative = True; 29 30 #define SETPROP(p) { \ 31 .v = (char *[]){ "/bin/sh", "-c", \ 32 "prop=\"`xwininfo -children -id $1 | grep '^ 0x' |" \ 33 "sed -e's@^ *\\(0x[0-9a-f]*\\) \"\\([^\"]*\\)\".*@\\1 \\2@' |" \ 34 "xargs -0 printf %b | dmenu -l 10 -bw 0 -w $1 -c`\" &&" \ 35 "xprop -id $1 -f $0 8s -set $0 \"$prop\"", \ 36 p, winid, NULL \ 37 } \ 38 } 39 40 #define MODKEY Mod1Mask 41 static Key keys[] = { 42 /* modifier key function argument */ 43 { MODKEY|ShiftMask, XK_Return, focusonce, { 0 } }, 44 { MODKEY|ShiftMask, XK_Return, spawn, { 0 } }, 45 46 47 { MODKEY|ShiftMask, XK_l, rotate, { .i = +1 } }, 48 { MODKEY|ShiftMask, XK_h, rotate, { .i = -1 } }, 49 { MODKEY|ShiftMask, XK_j, movetab, { .i = -1 } }, 50 { MODKEY|ShiftMask, XK_k, movetab, { .i = +1 } }, 51 { MODKEY, XK_Tab, rotate, { .i = 0 } }, 52 53 { MODKEY, XK_grave, spawn, SETPROP("_TABBED_SELECT_TAB") }, 54 { MODKEY, XK_1, move, { .i = 0 } }, 55 { MODKEY, XK_2, move, { .i = 1 } }, 56 { MODKEY, XK_3, move, { .i = 2 } }, 57 { MODKEY, XK_4, move, { .i = 3 } }, 58 { MODKEY, XK_5, move, { .i = 4 } }, 59 { MODKEY, XK_6, move, { .i = 5 } }, 60 { MODKEY, XK_7, move, { .i = 6 } }, 61 { MODKEY, XK_8, move, { .i = 7 } }, 62 { MODKEY, XK_9, move, { .i = 8 } }, 63 { MODKEY, XK_0, move, { .i = 9 } }, 64 65 { MODKEY, XK_q, killclient, { 0 } }, 66 { MODKEY, XK_d, detachclient,{ 0 } }, 67 68 { MODKEY, XK_u, focusurgent, { 0 } }, 69 { MODKEY|ShiftMask, XK_u, toggle, { .v = (void*) &urgentswitch } }, 70 { MODKEY|ShiftMask, XK_t, toggle, { .v = (void*) &focusnew } }, 71 72 { 0, XK_F11, fullscreen, { 0 } }, 73 };