summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-12-31 17:36:07 +0000
committerProsperousPotato <ProsperousPotato@users.noreply.github.com>2025-12-31 17:36:07 +0000
commit48f53402aa54f0c0ca28990db090ead7634f3f39 (patch)
tree4b9ff9afaccb11d406f7a54735f49b09fca185a3 /config.h
parent006a46e099311a161ceb4612c6a220fbc5b881f9 (diff)
add tiled move to mod|shift + lmb
Diffstat (limited to 'config.h')
-rw-r--r--config.h25
1 files changed, 13 insertions, 12 deletions
diff --git a/config.h b/config.h
index a9d470a..bee334d 100644
--- a/config.h
+++ b/config.h
@@ -161,20 +161,21 @@ static const Key keys[] = {
/* button definitions */
static const Button buttons[] = {
- /* click event mask button function argument */
- { ClkClientWin, MODKEY, Button1, movemouse, {0} },
- { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
- { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
+ /* click event mask button function argument */
+ { ClkClientWin, MODKEY, Button1, movemouse, {0} }, // regular window move
+ { ClkClientWin, MODKEY|ShiftMask, Button1, movemouse, {.i = 1} }, // tiled window move
+ { ClkClientWin, MODKEY, Button2, togglefloating, {0} },
+ { ClkClientWin, MODKEY, Button3, resizemouse, {0} },
/* Focus windows with scroll wheel */
- { ClkClientWin, MODKEY, Button4, focusstack, {.i = -1 } },
- { ClkClientWin, MODKEY, Button5, focusstack, {.i = +1 } },
- { ClkRootWin, MODKEY, Button4, focusstack, {.i = -1 } },
- { ClkRootWin, MODKEY, Button5, focusstack, {.i = +1 } },
+ { ClkClientWin, MODKEY, Button4, focusstack, {.i = -1 } },
+ { ClkClientWin, MODKEY, Button5, focusstack, {.i = +1 } },
+ { ClkRootWin, MODKEY, Button4, focusstack, {.i = -1 } },
+ { ClkRootWin, MODKEY, Button5, focusstack, {.i = +1 } },
/* Focus monitors with side mouse buttons */
- { ClkClientWin, MODKEY, Button8, focusmon, {.i = -1 } },
- { ClkClientWin, MODKEY, Button9, focusmon, {.i = +1 } },
- { ClkRootWin, MODKEY, Button8, focusmon, {.i = -1 } },
- { ClkRootWin, MODKEY, Button9, focusmon, {.i = +1 } },
+ { ClkClientWin, MODKEY, Button8, focusmon, {.i = -1 } },
+ { ClkClientWin, MODKEY, Button9, focusmon, {.i = +1 } },
+ { ClkRootWin, MODKEY, Button8, focusmon, {.i = -1 } },
+ { ClkRootWin, MODKEY, Button9, focusmon, {.i = +1 } },
};