dotfiles

My dotfiles for Arch Linux
git clone git://git.janispagel.de/dotfiles.git
Log | Files | Refs | README

config.h (2858B)


      1 /* See LICENSE file for copyright and license details. */
      2 
      3 /* appearance */
      4 static const char font[]        = "Sans:size=12";
      5 /* default colors
      6 static const char* normbgcolor  = "#222222";
      7 static const char* normfgcolor  = "#cccccc";
      8 static const char* selbgcolor   = "#555555";
      9 static const char* selfgcolor   = "#ffffff";
     10 */
     11 /* nord */
     12 static const char* normbgcolor  = "#4c566a";
     13 static const char* normfgcolor  = "#e5e9f0";
     14 static const char* selbgcolor   = "#ebcb8b";
     15 static const char* selfgcolor   = "#2e3440";
     16 static const char before[]      = "<";
     17 static const char after[]       = ">";
     18 static const int  tabwidth      = 200;
     19 static const Bool foreground    = True;
     20 
     21 /*
     22  * Where to place a new tab when it is opened. When npisrelative is True,
     23  * then the current position is changed + newposition. If npisrelative
     24  * is False, then newposition is an absolute position.
     25  */
     26 static int  newposition   = 0;
     27 static Bool npisrelative  = False;
     28 
     29 #define SETPROP(p) { \
     30 	.v = (char *[]){ "/bin/sh", "-c", \
     31 		"prop=\"`xwininfo -children -id $1 | grep '^     0x' | sed -e's@^ *\\(0x[0-9a-f]*\\) \"\\([^\"]*\\)\".*@\\1 \\2@' | xargs -0 printf %b | dmenu -l 10`\" &&" \
     32 		"xprop -id $1 -f $0 8s -set $0 \"$prop\"", \
     33 		p, winid, NULL \
     34 	} \
     35 }
     36 
     37 #define MODKEY ControlMask
     38 static Key keys[] = { \
     39 	/* modifier                     key        function        argument */
     40 	{ MODKEY|ShiftMask,             XK_Return, focusonce,      { 0 } },
     41 	{ MODKEY|ShiftMask,             XK_Return, spawn,          { 0 } },
     42 	{ MODKEY,                       XK_t,      spawn,          SETPROP("_TABBED_SELECT_TAB") },
     43 
     44 	{ MODKEY|ShiftMask,             XK_l,      movetab,        { .i = +1 } },
     45 	{ MODKEY|ShiftMask,             XK_h,      movetab,        { .i = -1 } },
     46 	{ ShiftMask,                    XK_j,      rotate,         { .i = -1 } },
     47 	{ ShiftMask,                    XK_k,      rotate,         { .i = +1 } },
     48 	{ MODKEY,                       XK_Tab,    rotate,         { .i = 0 } },
     49 
     50 	{ MODKEY,                       XK_1,      move,           { .i = 0 } },
     51 	{ MODKEY,                       XK_2,      move,           { .i = 1 } },
     52 	{ MODKEY,                       XK_3,      move,           { .i = 2 } },
     53 	{ MODKEY,                       XK_4,      move,           { .i = 3 } },
     54 	{ MODKEY,                       XK_5,      move,           { .i = 4 } },
     55 	{ MODKEY,                       XK_6,      move,           { .i = 5 } },
     56 	{ MODKEY,                       XK_7,      move,           { .i = 6 } },
     57 	{ MODKEY,                       XK_8,      move,           { .i = 7 } },
     58 	{ MODKEY,                       XK_9,      move,           { .i = 8 } },
     59 	{ MODKEY,                       XK_0,      move,           { .i = 9 } },
     60 
     61 	{ MODKEY,                       XK_q,      killclient,     { 0 } },
     62 
     63 	{ 0,                            XK_F11,    fullscreen,     { 0 } },
     64 };
     65