aboutsummaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2025-05-15 13:58:35 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2025-05-15 13:58:35 +0530
commitb1684df06c97526e59a7d4a31695cde80bf6b948 (patch)
tree8a728f471101167bc51d1aea36a16285b64304ac /config.def.h
parent0a2b3665fe9ac42c732e2748b5d8ea93a1c0904d (diff)
removed some useless keybindings, removed launcher and terminal to use with sxhkd
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h124
1 files changed, 48 insertions, 76 deletions
diff --git a/config.def.h b/config.def.h
index 788781e..425af1c 100644
--- a/config.def.h
+++ b/config.def.h
@@ -90,93 +90,65 @@ void shiftAndViewRight(const Arg *arg) {
}
static const Key keys[] = {
- /* modifier key function argument */
+ /* tag keys (for all the tag functions defined in TAGKEYS macro) */
+ TAGKEYS( XK_1, 0)
+ TAGKEYS( XK_2, 1)
+ TAGKEYS( XK_3, 2)
+ TAGKEYS( XK_4, 3)
+ TAGKEYS( XK_5, 4)
+ TAGKEYS( XK_6, 5)
+ TAGKEYS( XK_7, 6)
+ TAGKEYS( XK_8, 7)
+ TAGKEYS( XK_9, 8)
+ TAGKEYS( XK_0, 9)
+
+ /* modifier key function argument */
+ /* basic WM functions */
+ { MODKEY, XK_backslash, togglebar, {0} },
+ { MODKEY|ShiftMask, XK_c, killclient, {0} },
+ { MODKEY|ShiftMask, XK_q, quit, {0} }, // TODO: add confirmation or something
- /* launching stuff */
- { MODKEY, XK_g, spawn, {.v = dmenucmd } },
- { MODKEY, XK_Return, spawn, {.v = termcmd } },
+ /* viewing and moving to adjacent tags */
+ { MODKEY, XK_h, viewtoleft, {0} },
+ { MODKEY, XK_l, viewtoright, {0} },
+ { MODKEY|ShiftMask, XK_h, shiftAndViewLeft, {0} },
+ { MODKEY|ShiftMask, XK_l, shiftAndViewRight, {0} },
- /* 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
+ /* multi monitor stuff */
+ /* focusing monitors */
+ { MODKEY|ControlMask, XK_h, focusmon, {.i = -1 } },
+ { MODKEY|ControlMask, XK_l, focusmon, {.i = +1 } },
+ /* moving windows to monitors */
+ { MODKEY|ControlMask|ShiftMask, XK_h, tagmon, {.i = -1 } },
+ { MODKEY|ControlMask|ShiftMask, XK_l, tagmon, {.i = +1 } },
+ /* move floating windows from the keyboard */
+ { MODKEY|ControlMask, XK_Up, movekeyboard_y, {.i = -1}},
+ { MODKEY|ControlMask, XK_Down, movekeyboard_y, {.i = 1}},
+ { MODKEY|ControlMask, XK_Left, movekeyboard_x, {.i = -1}},
+ { MODKEY|ControlMask, XK_Right, movekeyboard_x, {.i = 1}},
+
/* tiling window management */
- { MODKEY, XK_j, focusstack, {.i = +1 } },
- { MODKEY, XK_k, focusstack, {.i = -1 } },
- { MODKEY, XK_i, incnmaster, {.i = +1 } },
- { MODKEY, XK_d, incnmaster, {.i = -1 } },
- //{ MODKEY, XK_h, setmfact, {.f = -0.05} },
- //{ MODKEY, XK_l, setmfact, {.f = +0.05} },
- { MODKEY|ShiftMask, XK_Return, zoom, {0} },
- { MODKEY, XK_Tab, view, {0} },
+ { MODKEY, XK_j, focusstack, {.i = +1 } },
+ { MODKEY, XK_k, focusstack, {.i = -1 } },
+ { MODKEY|ShiftMask, XK_Return, zoom, {0} },
+ // { MODKEY, XK_r, incnmaster, {.i = +1 } },
+ // { MODKEY|ShiftMask, XK_r, incnmaster, {.i = -1 } },
+ // { MODKEY, XK_question, setmfact, {.f = -0.05} },
+ // { MODKEY, XK_slash, setmfact, {.f = +0.05} },
+ // { MODKEY, XK_Tab, view, {0} },
/* layouts */
- { MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
- { MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
- { MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
+ // TODO: only have toggle floating, default layout, and cycle layout
+ //{ 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} },
+ //{ 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 } },
-
- /* viewing and moving to adjacent tags */
- { MODKEY, XK_h, viewtoleft, {0} },
- { MODKEY, XK_l, viewtoright, {0} },
- { MODKEY|ShiftMask, XK_h, shiftAndViewLeft, {0} },
- { MODKEY|ShiftMask, XK_l, shiftAndViewRight, {0} },
-
-
- /* 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 = -5}},
- { MODKEY|ControlMask, XK_Down, movekeyboard_y, {.i = 5}},
- { MODKEY|ControlMask, XK_Left, movekeyboard_x, {.i = -5}},
- { MODKEY|ControlMask, XK_Right, movekeyboard_x, {.i = 5}},
-
- /* vanitygaps commands */
- // { MODKEY|ShiftMask, XK_h, setcfact, {.f = +0.25} },
- // { MODKEY|ShiftMask, XK_l, setcfact, {.f = -0.25} },
- // { MODKEY|ShiftMask, XK_o, setcfact, {.f = 0.00} },
- // { MODKEY|Mod1Mask, XK_u, incrgaps, {.i = +1 } },
- // { MODKEY|Mod1Mask|ShiftMask, XK_u, incrgaps, {.i = -1 } },
- // { MODKEY|Mod1Mask, XK_i, incrigaps, {.i = +1 } },
- // { MODKEY|Mod1Mask|ShiftMask, XK_i, incrigaps, {.i = -1 } },
- // { MODKEY|Mod1Mask, XK_o, incrogaps, {.i = +1 } },
- // { MODKEY|Mod1Mask|ShiftMask, XK_o, incrogaps, {.i = -1 } },
- // { MODKEY|Mod1Mask, XK_6, incrihgaps, {.i = +1 } },
- // { MODKEY|Mod1Mask|ShiftMask, XK_6, incrihgaps, {.i = -1 } },
- // { MODKEY|Mod1Mask, XK_7, incrivgaps, {.i = +1 } },
- // { MODKEY|Mod1Mask|ShiftMask, XK_7, incrivgaps, {.i = -1 } },
- // { MODKEY|Mod1Mask, XK_8, incrohgaps, {.i = +1 } },
- // { MODKEY|Mod1Mask|ShiftMask, XK_8, incrohgaps, {.i = -1 } },
- // { MODKEY|Mod1Mask, XK_9, incrovgaps, {.i = +1 } },
- // { MODKEY|Mod1Mask|ShiftMask, XK_9, incrovgaps, {.i = -1 } },
- // { MODKEY|Mod1Mask, XK_0, togglegaps, {0} },
- // { MODKEY|Mod1Mask|ShiftMask, XK_0, defaultgaps, {0} },
-
- /* tag keys (for all the tag functions defined in TAGKEYS macro) */
- TAGKEYS( XK_1, 0)
- TAGKEYS( XK_2, 1)
- TAGKEYS( XK_3, 2)
- TAGKEYS( XK_4, 3)
- TAGKEYS( XK_5, 4)
- TAGKEYS( XK_6, 5)
- TAGKEYS( XK_7, 6)
- TAGKEYS( XK_8, 7)
- TAGKEYS( XK_9, 8)
- TAGKEYS( XK_0, 9)
};
/* button definitions */