sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit 261c324f1fd6b1f6f7b388a564a6d71d8c50e8d9
parent 26977e016c12edab1b2f900dca5b1c2510226352
Author: Quentin Rameau <quinq@quinq.eu.org>
Date:   Mon, 27 Jan 2014 19:34:20 +0100

tabbed keycode: added commentary to ease config

Diffstat:
Mtools.suckless.org/tabbed/patches/tabbed-0.6-keycode.diff | 50++++++++++++++++++++++++++------------------------
1 file changed, 26 insertions(+), 24 deletions(-)

diff --git a/tools.suckless.org/tabbed/patches/tabbed-0.6-keycode.diff b/tools.suckless.org/tabbed/patches/tabbed-0.6-keycode.diff @@ -1,11 +1,12 @@ diff --git a/config.def.h b/config.def.h -index ceda9f7..d3be61f 100644 +index ceda9f7..088201a 100644 --- a/config.def.h +++ b/config.def.h -@@ -30,29 +30,29 @@ static Bool npisrelative = False; +@@ -29,30 +29,30 @@ static Bool npisrelative = False; + #define MODKEY ControlMask static Key keys[] = { \ - /* modifier key function argument */ +- /* modifier key function argument */ - { MODKEY|ShiftMask, XK_Return, focusonce, { 0 } }, - { MODKEY|ShiftMask, XK_Return, spawn, { 0 } }, - { MODKEY, XK_t, spawn, SETPROP("_TABBED_SELECT_TAB") }, @@ -30,30 +31,31 @@ index ceda9f7..d3be61f 100644 - { MODKEY, XK_q, killclient, { 0 } }, - - { 0, XK_F11, fullscreen, { 0 } }, -+ { MODKEY|ShiftMask, 36, focusonce, { 0 } }, -+ { MODKEY|ShiftMask, 36, spawn, { 0 } }, -+ { MODKEY, 44, spawn, SETPROP("_TABBED_SELECT_TAB") }, -+ -+ { MODKEY|ShiftMask, 32, rotate, { .i = +1 } }, -+ { MODKEY|ShiftMask, 60, rotate, { .i = -1 } }, -+ { MODKEY|ShiftMask, 33, movetab, { .i = -1 } }, -+ { MODKEY|ShiftMask, 56, movetab, { .i = +1 } }, -+ { MODKEY, 23, rotate, { .i = 0 } }, ++ /* modifier key function argument */ ++ { MODKEY|ShiftMask, 36, focusonce, { 0 } }, // Return ++ { MODKEY|ShiftMask, 36, spawn, { 0 } }, // Return ++ { MODKEY, 44, spawn, SETPROP("_TABBED_SELECT_TAB") }, // t + -+ { MODKEY, 10, move, { .i = 0 } }, -+ { MODKEY, 11, move, { .i = 1 } }, -+ { MODKEY, 12, move, { .i = 2 } }, -+ { MODKEY, 13, move, { .i = 3 } }, -+ { MODKEY, 14, move, { .i = 4 } }, -+ { MODKEY, 15, move, { .i = 5 } }, -+ { MODKEY, 16, move, { .i = 6 } }, -+ { MODKEY, 17, move, { .i = 7 } }, -+ { MODKEY, 18, move, { .i = 8 } }, -+ { MODKEY, 19, move, { .i = 9 } }, ++ { MODKEY|ShiftMask, 46, rotate, { .i = +1 } }, // l ++ { MODKEY|ShiftMask, 43, rotate, { .i = -1 } }, // h ++ { MODKEY|ShiftMask, 44, movetab, { .i = -1 } }, // j ++ { MODKEY|ShiftMask, 45, movetab, { .i = +1 } }, // k ++ { MODKEY, 23, rotate, { .i = 0 } }, // Tab ++ ++ { MODKEY, 10, move, { .i = 0 } }, // 1 ++ { MODKEY, 11, move, { .i = 1 } }, // 2 ++ { MODKEY, 12, move, { .i = 2 } }, // 3 ++ { MODKEY, 13, move, { .i = 3 } }, // 4 ++ { MODKEY, 14, move, { .i = 4 } }, // 5 ++ { MODKEY, 15, move, { .i = 5 } }, // 6 ++ { MODKEY, 16, move, { .i = 6 } }, // 7 ++ { MODKEY, 17, move, { .i = 7 } }, // 8 ++ { MODKEY, 18, move, { .i = 8 } }, // 9 ++ { MODKEY, 19, move, { .i = 9 } }, // 0 + -+ { MODKEY, 24, killclient, { 0 } }, ++ { MODKEY, 24, killclient, { 0 } }, // q + -+ { 0, 95, fullscreen, { 0 } }, ++ { 0, 95, fullscreen, { 0 } }, // F11 }; diff --git a/tabbed.c b/tabbed.c