diff options
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 39 |
1 files changed, 33 insertions, 6 deletions
diff --git a/config.def.h b/config.def.h index 4aa0562..8051317 100644 --- a/config.def.h +++ b/config.def.h @@ -60,9 +60,17 @@ static const char *termcmd[] = { "open_terminal", NULL }; static const Key keys[] = { /* modifier key function argument */ + + /* launching stuff */ { MODKEY, XK_g, spawn, {.v = dmenucmd } }, { MODKEY, XK_Return, spawn, {.v = termcmd } }, + + /* basic WM functions */ { MODKEY, XK_b, togglebar, {0} }, + { MODKEY|ShiftMask, XK_c, killclient, {0} }, + { MODKEY|ShiftMask, XK_q, quit, {0} }, // TODO: add confirmation or something + + /* tiling window management */ { MODKEY, XK_j, focusstack, {.i = +1 } }, { MODKEY, XK_k, focusstack, {.i = -1 } }, { MODKEY, XK_i, incnmaster, {.i = +1 } }, @@ -71,21 +79,41 @@ static const Key keys[] = { //{ MODKEY, XK_l, setmfact, {.f = +0.05} }, { MODKEY|ShiftMask, XK_Return, zoom, {0} }, { MODKEY, XK_Tab, view, {0} }, - { MODKEY|ShiftMask, XK_c, killclient, {0} }, + + /* layouts */ { MODKEY, XK_t, setlayout, {.v = &layouts[0]} }, { MODKEY, XK_f, setlayout, {.v = &layouts[1]} }, { MODKEY, XK_m, setlayout, {.v = &layouts[2]} }, { MODKEY, XK_space, setlayout, {0} }, { MODKEY|ShiftMask, XK_space, togglefloating, {0} }, + + /* functions for "all tags" TODO: map them somewhere, they seem useful */ // { MODKEY, XK_0, view, {.ui = ~0 } }, // { MODKEY|ShiftMask, XK_0, tag, {.ui = ~0 } }, - { MODKEY, XK_comma, focusmon, {.i = -1 } }, - { MODKEY, XK_period, focusmon, {.i = +1 } }, - { MODKEY|ShiftMask, XK_h, tagmon, {.i = -1 } }, - { MODKEY|ShiftMask, XK_l, tagmon, {.i = +1 } }, + + + /* multi monitor stuff */ + /* TODO: have bindings to move and focus at the same time */ + /* focusing monitors */ + // { MODKEY, XK_comma, focusmon, {.i = -1 } }, + // { MODKEY, XK_period, focusmon, {.i = +1 } }, + /* moving windows to monitors */ + // { MODKEY|ShiftMask, XK_h, tagmon, {.i = -1 } }, + // { MODKEY|ShiftMask, XK_l, tagmon, {.i = +1 } }, + + + /* move floating windows from the keyboard */ + { MODKEY|ControlMask, XK_up, movekeyboard_y, {.i = -20}}, + { MODKEY|ControlMask, XK_down, movekeyboard_y, {.i = 20}}, + { MODKEY|ControlMask, XK_left, movekeyboard_x, {.i = -20}}, + { MODKEY|ControlMask, XK_right, movekeyboard_x, {.i = 20}}, + + /* modify gaps on runtime */ { MODKEY, XK_minus, setgaps, {.i = -1 } }, { MODKEY, XK_equal, setgaps, {.i = +1 } }, { MODKEY|ShiftMask, XK_equal, setgaps, {.i = 0 } }, + + /* tag keys (for all the tag functions defined in TAGKEYS macro) */ TAGKEYS( XK_1, 0) TAGKEYS( XK_2, 1) TAGKEYS( XK_3, 2) @@ -96,7 +124,6 @@ static const Key keys[] = { TAGKEYS( XK_8, 7) TAGKEYS( XK_9, 8) TAGKEYS( XK_0, 9) - { MODKEY|ShiftMask, XK_q, quit, {0} }, }; /* button definitions */ |