config.h (3045B)
1 /* See LICENSE file for copyright and license details. */ 2 3 /* appearance */ 4 /* static const char font[] = "dina:size=9:antialias=false"; */ 5 /* static const char font[] = "terminus:size=12"; */ 6 static const char font[] = "pragmatapro:size=11"; 7 static const char* normbgcolor = "#000000"; 8 static const char* normfgcolor = "#ffffff"; 9 static const char* selbgcolor = "#ffffff"; 10 static const char* selfgcolor = "#000000"; 11 static const char* urgbgcolor = "#FF3334"; 12 static const char* urgfgcolor = "#000000"; 13 static const char before[] = "<"; 14 static const char after[] = ">"; 15 static const char titletrim[] = "..."; 16 static const int tabwidth = 200; 17 static const Bool foreground = True; 18 static Bool urgentswitch = False; 19 20 /* 21 * Where to place a new tab when it is opened. When npisrelative is True, 22 * then the current position is changed + newposition. If npisrelative 23 * is False, then newposition is an absolute position. 24 */ 25 /* static int newposition = 0; */ 26 /* static Bool npisrelative = False; */ 27 static int newposition = 1; 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 -w $1`\" &&" \ 35 "xprop -id $1 -f $0 8s -set $0 \"$prop\"", \ 36 p, winid, NULL \ 37 } \ 38 } 39 40 #define MODKEY ControlMask 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 { MODKEY|ShiftMask, XK_l, rotate, { .i = +1 } }, 47 { MODKEY|ShiftMask, XK_h, rotate, { .i = -1 } }, 48 { MODKEY|ShiftMask, XK_j, movetab, { .i = -1 } }, 49 { MODKEY|ShiftMask, XK_k, movetab, { .i = +1 } }, 50 { MODKEY, XK_Tab, rotate, { .i = 0 } }, 51 52 { MODKEY, XK_grave, spawn, SETPROP("_TABBED_SELECT_TAB") }, 53 { MODKEY, XK_1, move, { .i = 0 } }, 54 { MODKEY, XK_2, move, { .i = 1 } }, 55 { MODKEY, XK_3, move, { .i = 2 } }, 56 { MODKEY, XK_4, move, { .i = 3 } }, 57 { MODKEY, XK_5, move, { .i = 4 } }, 58 { MODKEY, XK_6, move, { .i = 5 } }, 59 { MODKEY, XK_7, move, { .i = 6 } }, 60 { MODKEY, XK_8, move, { .i = 7 } }, 61 { MODKEY, XK_9, move, { .i = 8 } }, 62 { MODKEY, XK_0, move, { .i = 9 } }, 63 64 { MODKEY, XK_q, killclient, { 0 } }, 65 66 /* { MODKEY|ShiftMask, XK_u, focusurgent, { 0 } }, */ 67 /* { MODKEY|ShiftMask, XK_t, toggle, { .v = (void*) &urgentswitch } }, */ 68 69 { 0, XK_F11, fullscreen, { 0 } }, 70 };