summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-08-13 17:56:39 +0100
committertcmal <me@aria.rip>2024-08-13 21:48:11 +0100
commite4d9484d0e1ebcf496d0606800560c09d2753df4 (patch)
tree23931a1cba89ca75e592c7351022bf7b22c487a8 /src/config.rs
parentd973959f7f34e02eeb01766b01aff680639a8c4c (diff)
Add moving and resizing with mouse
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs19
1 files changed, 4 insertions, 15 deletions
diff --git a/src/config.rs b/src/config.rs
index aebe0f1..54549b7 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -9,7 +9,8 @@ use crate::{
clients::TagFocus,
conn_info::Colour,
helpers::{
- focus_next, focus_prev, set_tag, set_tag_focus, spawn, toggle_floating, toggle_fullscreen,
+ focus_next, focus_prev, mouse_move, mouse_resize, set_tag, set_tag_focus, spawn,
+ toggle_floating, toggle_fullscreen,
},
keys::Keybinds,
};
@@ -69,27 +70,15 @@ pub const KEYBINDS: Keybinds = Keybinds(&[
// { 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, 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 } },
- // 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)
// { MODKEY|ShiftMask, XK_q, quit, {0} },
]);
/// The (mouse) button binds to use
pub const BUTTON_BINDS: ButtonBinds = ButtonBinds(&[
- bind_btn!(MAIN_MODIFIER , N1 -> &toggle_floating),
- // TODO
+ bind_btn!(MAIN_MODIFIER , N1 -> &mouse_move),
+ bind_btn!(MAIN_MODIFIER , N2 -> &mouse_resize),
]);