Update basic key definitions
This commit is contained in:
parent
1dd1020084
commit
d78502233e
48
config.h
48
config.h
@ -58,7 +58,7 @@ static const Layout layouts[] = {
|
||||
};
|
||||
|
||||
/* key definitions */
|
||||
#define MODKEY Mod1Mask
|
||||
#define MODKEY Mod4Mask
|
||||
#define TAGKEYS(KEY,TAG) \
|
||||
{ MODKEY, KEY, view, {.ui = 1 << TAG} }, \
|
||||
{ MODKEY|ControlMask, KEY, toggleview, {.ui = 1 << TAG} }, \
|
||||
@ -104,18 +104,7 @@ static const char *nmcedit[] = { "nm-connection-editor" , NULL };
|
||||
static const char *top[] = { "kitty" , "htop" , NULL };
|
||||
static const Key keys[] = {
|
||||
/* modifier key function argument */
|
||||
{ MODKEY, XK_p, spawn, {.v = dmenucmd } },
|
||||
{ MODKEY|ShiftMask, XK_Return, spawn, {.v = termcmd } },
|
||||
{ MODKEY, XK_b, togglebar, {0} },
|
||||
{ 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, XK_Return, zoom, {0} },
|
||||
{ MODKEY, XK_Tab, view, {0} },
|
||||
{ MODKEY|ShiftMask, XK_c, killclient, {0} },
|
||||
{ MODKEY, XK_t, setlayout, {.v = &layouts[0]} },
|
||||
{ MODKEY, XK_f, setlayout, {.v = &layouts[1]} },
|
||||
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
|
||||
@ -123,11 +112,36 @@ static const Key keys[] = {
|
||||
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
|
||||
{ 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_comma, tagmon, {.i = -1 } },
|
||||
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
|
||||
{ MODKEY|ShiftMask, XK_q, quit, {0} },
|
||||
{ MODKEY, XK_Left, focusmon, {.i = -1} },
|
||||
{ MODKEY, XK_Right, focusmon, {.i = +1} },
|
||||
{ MODKEY|ShiftMask, XK_Left, tagmon, {.i = -1} },
|
||||
{ MODKEY|ShiftMask, XK_Right, tagmon, {.i = +1} },
|
||||
|
||||
{ MODKEY, XK_p, spawn, {.v = roficmd} },
|
||||
{ MODKEY, XK_k, spawn, {.v = termcmd} },
|
||||
{ MODKEY, XK_e, spawn, {.v = filecmd} },
|
||||
{ MODKEY, XK_n, spawn, {.v = nmtui} },
|
||||
{ MODKEY|ShiftMask, XK_n, spawn, {.v = nmcedit} },
|
||||
{ MODKEY, XK_h, spawn, {.v = top} },
|
||||
|
||||
{ 0, XK_Print, spawn, {.v = sca} },
|
||||
{ MODKEY|ShiftMask, XK_s, spawn, {.v = scr} },
|
||||
{ MODKEY, XK_b, togglebar, {0} },
|
||||
{ MODKEY, XK_Prior, focusstack, {.i = -1} },
|
||||
{ MODKEY, XK_Next, focusstack, {.i = +1} },
|
||||
{ MODKEY, XK_Down, focusstack, {.i = -1} },
|
||||
{ MODKEY, XK_Up, focusstack, {.i = +1} },
|
||||
|
||||
{ MODKEY, XK_Return, zoom, {0} },
|
||||
|
||||
{ MODKEY, XK_w, killclient, {0} },
|
||||
{ MODKEY|ShiftMask, XK_q, quit, {0} },
|
||||
|
||||
{ MODKEY|Mod1Mask, XK_Up, incnmaster, {.i = +1} },
|
||||
{ MODKEY|Mod1Mask, XK_Down, incnmaster, {.i = -1} },
|
||||
{ MODKEY|Mod1Mask, XK_Left, setmfact, {.f = -0.05} },
|
||||
{ MODKEY|Mod1Mask, XK_Right, setmfact, {.f = +0.05} },
|
||||
|
||||
TAGKEYS(XK_1, 0)
|
||||
TAGKEYS(XK_2, 1)
|
||||
TAGKEYS(XK_3, 2)
|
||||
|
Loading…
Reference in New Issue
Block a user