tabbed-noxz

[fork] suckless tabbed - personal fork
git clone https://noxz.tech/git/tabbed-noxz.git
Log | Files | README | LICENSE

config.def.h
1/* See LICENSE file for copyright and license details. */
2
3/* appearance */
4static char* font         = "monospace:size=9";
5static char* pidbgcolor   = "#222222";
6static char* pidfgcolor   = "#cccccc";
7static char* normbgcolor  = "#222222";
8static char* normfgcolor  = "#cccccc";
9static char* selbgcolor   = "#555555";
10static char* selfgcolor   = "#ffffff";
11static char* urgbgcolor   = "#111111";
12static char* urgfgcolor   = "#cc0000";
13static char* before       = "<";
14static char* after        = ">";
15static char* titletrim    = "...";
16static int tabwidth       = 100;
17static int focusnew       = 0;
18static int urgentswitch   = 0;
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 */
25static int newposition   = -1;
26static int npisrelative  = 0;
27
28/*
29 * Xresources preferences to load at startup
30 */
31ResourcePref resources[] = {
32	{ "font",                   STRING,  &font},
33	{ "pidBackground",          STRING,  &pidbgcolor},
34	{ "pidForeground",          STRING,  &pidfgcolor},
35	{ "normalBackground",       STRING,  &normbgcolor},
36	{ "normalForeground",       STRING,  &normfgcolor},
37	{ "selectedBackground",     STRING,  &selbgcolor},
38	{ "selectedForeground",     STRING,  &selfgcolor},
39	{ "urgentBackground",       STRING,  &urgbgcolor},
40	{ "urgentForeground",       STRING,  &urgfgcolor},
41	{ "before",                 STRING,  &before},
42	{ "after",                  STRING,  &after},
43	{ "titletrim",              STRING,  &titletrim},
44	{ "tabwidth",               INTEGER, &tabwidth},
45	{ "focusnew",               INTEGER, &focusnew},
46	{ "urgentswitch",           INTEGER, &urgentswitch},
47	{ "newposition",            INTEGER, &newposition},
48	{ "npisrelative",           INTEGER, &npisrelative},
49};
50
51#define MODKEY Mod1Mask
52static const Key keys[] = {
53	/* modifier             key        function     argument */
54	{ MODKEY,               XK_t,      focusonce,   { 0 } },
55	{ MODKEY,               XK_t,      spawn,       { 0 } },
56
57	{ MODKEY,               XK_j,      rotate,      { .i = -1 } },
58	{ MODKEY,               XK_k,      rotate,      { .i = +1 } },
59	{ MODKEY|ShiftMask,     XK_j,      movetab,     { .i = -1 } },
60	{ MODKEY|ShiftMask,     XK_k,      movetab,     { .i = +1 } },
61	{ MODKEY,               XK_Tab,    rotate,      { .i = 0 } },
62
63	{ MODKEY,               XK_1,      move,        { .i = 0 } },
64	{ MODKEY,               XK_2,      move,        { .i = 1 } },
65	{ MODKEY,               XK_3,      move,        { .i = 2 } },
66	{ MODKEY,               XK_4,      move,        { .i = 3 } },
67	{ MODKEY,               XK_5,      move,        { .i = 4 } },
68	{ MODKEY,               XK_6,      move,        { .i = 5 } },
69	{ MODKEY,               XK_7,      move,        { .i = 6 } },
70	{ MODKEY,               XK_8,      move,        { .i = 7 } },
71	{ MODKEY,               XK_9,      move,        { .i = 8 } },
72	{ MODKEY,               XK_0,      move,        { .i = 9 } },
73
74	{ MODKEY,               XK_q,      killclient,  { 0 } },
75
76	{ MODKEY,               XK_u,      focusurgent, { 0 } },
77	{ MODKEY|ShiftMask,     XK_u,      toggle,      { .v = (void*) &urgentswitch } },
78	{ MODKEY,               XK_b,      togglebar,   { 0 } },
79
80	{ 0,                    XK_F11,    fullscreen,  { 0 } },
81};