aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2020-08-09 11:00:58 +0200
committerOmar Polo <op@omarpolo.com>2020-08-09 11:00:58 +0200
commit770f4148881e1d8af14d3def59bb17c8355b9a32 (patch)
tree04fbcd264612b59a254f1628fa6eacb9d32342ee
parente5f56fcf0001ecd5a4943aa2ce469b5042cd87f4 (diff)
downloaddwm-retake-770f4148881e1d8af14d3def59bb17c8355b9a32.tar.gz
dwm-retake-770f4148881e1d8af14d3def59bb17c8355b9a32.tar.bz2
various keybinding changes
-rw-r--r--config.def.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/config.def.h b/config.def.h
index 4c10f70..b38b450 100644
--- a/config.def.h
+++ b/config.def.h
@@ -52,7 +52,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} }, \
@@ -68,8 +68,10 @@ static const char *termcmd[] = { "xterm", NULL };
static Key keys[] = {
/* modifier key function argument */
- { MODKEY, XK_p, spawn, {.v = menucmd } },
+ { MODKEY, XK_slash, spawn, {.v = menucmd } },
{ MODKEY|ControlMask, XK_Return, spawn, {.v = termcmd } },
+ { MODKEY, XK_Scroll_Lock, spawn, SHCMD("sshot") },
+ { MODKEY|ShiftMask, XK_Scroll_Lock, spawn, SHCMD("sshot -s") },
{ MODKEY, XK_b, togglebar, {0} },
{ MODKEY, XK_j, focusstack, {.i = +1 } },
{ MODKEY, XK_k, focusstack, {.i = -1 } },
@@ -82,8 +84,8 @@ static Key keys[] = {
{ 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_f, setlayout, {.v = &layouts[0]} },
+ { MODKEY, XK_t, setlayout, {.v = &layouts[1]} },
{ MODKEY, XK_m, setlayout, {.v = &layouts[2]} },
{ MODKEY, XK_space, setlayout, {0} },
{ MODKEY|ShiftMask, XK_space, togglefloating, {0} },
@@ -93,9 +95,9 @@ static Key keys[] = {
{ MODKEY, XK_period, focusmon, {.i = +1 } },
{ MODKEY|ShiftMask, XK_comma, tagmon, {.i = -1 } },
{ MODKEY|ShiftMask, XK_period, tagmon, {.i = +1 } },
- { MODKEY, XK_minus, setgaps, {.i = -5 } },
- { MODKEY, XK_equal, setgaps, {.i = +5 } },
- { MODKEY|ShiftMask, XK_g, setgaps, {.i = 0 } },
+ { MODKEY, XK_g, setgaps, {.i = -5 } },
+ { MODKEY|ShiftMask, XK_g, setgaps, {.i = +5 } },
+ { MODKEY|ShiftMask, XK_minus, setgaps, {.i = 0 } },
TAGKEYS( XK_ampersand, 0)
TAGKEYS( XK_braceleft, 1)
TAGKEYS( XK_bracketleft, 2)