patch-config.h - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
 (HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
       patch-config.h
       ---
            1 --- /dev/null   2018-10-11 10:58:43.162996796 +0200
            2 +++ config.h    2018-10-11 11:22:22.619145529 +0200
            3 @@ -0,0 +1,71 @@
            4 +/* See LICENSE file for copyright and license details. */
            5 +
            6 +/* appearance */
            7 +static const char font[]        = "Droid Sans Mono:size=10";
            8 +static const char* normbgcolor  = "#000000";
            9 +static const char* normfgcolor  = "#777777";
           10 +static const char* selbgcolor   = "#000000";
           11 +static const char* selfgcolor   = "#ffffff";
           12 +static const char* urgbgcolor   = "#ffffff";
           13 +static const char* urgfgcolor   = "#000000";
           14 +static const char before[]      = "<";
           15 +static const char after[]       = ">";
           16 +static const char titletrim[]   = "...";
           17 +static const int  tabwidth      = 200;
           18 +static const Bool foreground    = True;
           19 +static       Bool urgentswitch  = False;
           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   = 1;
           27 +static Bool npisrelative  = True;
           28 +
           29 +#define SETPROP(p) { \
           30 +        .v = (char *[]){ "/bin/sh", "-c", \
           31 +                "prop=\"`xwininfo -children -id $1 | grep '^     0x' |" \
           32 +                "sed -e's@^ *\\(0x[0-9a-f]*\\) \"\\([^\"]*\\)\".*@\\1 \\2@' |" \
           33 +                "xargs -0 printf %b | dmenu -l 10 -w $1`\" &&" \
           34 +                "xprop -id $1 -f $0 8s -set $0 \"$prop\"", \
           35 +                p, winid, NULL \
           36 +        } \
           37 +}
           38 +
           39 +#define MODKEY ControlMask
           40 +static Key keys[] = {
           41 +       /* modifier             key        function     argument */
           42 +       { MODKEY|ShiftMask,     XK_Return, focusonce,   { 0 } },
           43 +       { MODKEY|ShiftMask,     XK_Return, spawn,       { 0 } },
           44 +
           45 +       { MODKEY,               XK_Right,  rotate,      { .i = +1 } },
           46 +       { MODKEY,               XK_Left,   rotate,      { .i = -1 } },
           47 +       { MODKEY|ShiftMask,     XK_l,      rotate,      { .i = +1 } },
           48 +       { MODKEY|ShiftMask,     XK_h,      rotate,      { .i = -1 } },
           49 +       { MODKEY|ShiftMask,     XK_Right,  movetab,     { .i = +1 } },
           50 +       { MODKEY|ShiftMask,     XK_Left,   movetab,     { .i = -1 } },
           51 +       { MODKEY|ShiftMask,     XK_j,      movetab,     { .i = -1 } },
           52 +       { MODKEY|ShiftMask,     XK_k,      movetab,     { .i = +1 } },
           53 +       { MODKEY,               XK_Tab,    rotate,      { .i = 0 } },
           54 +
           55 +       { MODKEY,               XK_t,      spawn,       SETPROP("_TABBED_SELECT_TAB") },
           56 +       { MODKEY,               XK_1,      move,        { .i = 0 } },
           57 +       { MODKEY,               XK_2,      move,        { .i = 1 } },
           58 +       { MODKEY,               XK_3,      move,        { .i = 2 } },
           59 +       { MODKEY,               XK_4,      move,        { .i = 3 } },
           60 +       { MODKEY,               XK_5,      move,        { .i = 4 } },
           61 +       { MODKEY,               XK_6,      move,        { .i = 5 } },
           62 +       { MODKEY,               XK_7,      move,        { .i = 6 } },
           63 +       { MODKEY,               XK_8,      move,        { .i = 7 } },
           64 +       { MODKEY,               XK_9,      move,        { .i = 8 } },
           65 +       { MODKEY,               XK_0,      move,        { .i = 9 } },
           66 +
           67 +       { MODKEY,               XK_d,      killclient,  { 0 } },
           68 +       { MODKEY,               XK_q,      killclient,  { 0 } },
           69 +
           70 +       { MODKEY|ShiftMask,          XK_u,  focusurgent, { 0 } },
           71 +       { MODKEY|Mod1Mask|ShiftMask, XK_u,  toggle,      { .v = (void*) &urgentswitch } },
           72 +
           73 +       { 0,                    XK_F11,    fullscreen,  { 0 } },
           74 +};