summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
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),
]);