diff options
author | tcmal <me@aria.rip> | 2024-08-30 16:26:34 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-30 16:49:19 +0100 |
commit | a568b4a79d1ccabfdff0a5a8ecbb908e96f17cf5 (patch) | |
tree | aa646de48cb2ef040b7d9e7164f59c827f6961a3 /src/config.rs | |
parent | b5601a6eb3a8d0603bb837a847701d3d49f984c3 (diff) |
Add binds for moving clients up/down stack
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/config.rs b/src/config.rs index f806df4..723f0e7 100644 --- a/src/config.rs +++ b/src/config.rs @@ -10,7 +10,7 @@ use crate::{ conn_info::Colour, helpers::{ focus_next, focus_prev, kill_client, mouse_move, mouse_resize, set_tag, set_tag_focus, - spawn, toggle_floating, toggle_fullscreen, + shift_down, shift_top, shift_up, spawn, toggle_floating, toggle_fullscreen, }, keys::Keybinds, }; @@ -47,6 +47,9 @@ pub const KEYBINDS: Keybinds = Keybinds(&[ bind!(MAIN_MODIFIER , Print -> &|_| spawn::<_, &str>("sh", ["-c", "screenshot"])), bind!(MAIN_MODIFIER , j -> &focus_next), bind!(MAIN_MODIFIER , k -> &focus_prev), + bind!(MAIN_MODIFIER , f -> &shift_top), + bind!(MAIN_MODIFIER.union(ModMask::SHIFT) , j -> &shift_down), + bind!(MAIN_MODIFIER.union(ModMask::SHIFT) , k -> &shift_up), bind!(MAIN_MODIFIER.union(ModMask::SHIFT) , space -> &toggle_floating), bind!(MAIN_MODIFIER.union(ModMask::SHIFT) , f -> &toggle_fullscreen), bind!(MAIN_MODIFIER.union(ModMask::SHIFT) , q -> &kill_client), @@ -69,23 +72,14 @@ pub const KEYBINDS: Keybinds = Keybinds(&[ bind!(MAIN_MODIFIER.union(ModMask::SHIFT) , _7 -> &|wm| set_tag(wm, 7)), bind!(MAIN_MODIFIER.union(ModMask::SHIFT) , _8 -> &|wm| set_tag(wm, 8)), bind!(MAIN_MODIFIER.union(ModMask::SHIFT) , _9 -> &|wm| set_tag(wm, 9)), - // { 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]} }, // { MODKEY, XK_space, setlayout, {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} }, ]); |