summaryrefslogtreecommitdiff
path: root/src/config.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-07-04 22:22:46 +0100
committertcmal <me@aria.rip>2024-07-04 22:22:46 +0100
commitb9778944ba27e1deeec1be2bdc286790e6274470 (patch)
tree479e6312692551d1699738ea7da8e3fc44189055 /src/config.rs
parentd147f26efa31cccf162b939c067ab3b6ed2842e2 (diff)
support floating windows
Diffstat (limited to 'src/config.rs')
-rw-r--r--src/config.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/config.rs b/src/config.rs
index 0fc7144..aac47ae 100644
--- a/src/config.rs
+++ b/src/config.rs
@@ -7,7 +7,7 @@ use xkeysym::Keysym;
use crate::{
bind,
conn_info::Colour,
- helpers::{focus_next, focus_prev, spawn},
+ helpers::{focus_next, focus_prev, spawn, toggle_floating},
keys::{Keybind, Keybinds},
};
@@ -32,6 +32,7 @@ pub const KEYBINDS: Keybinds = Keybinds(&[
bind!(MAIN_MODIFIER , p -> &|_| spawn::<_, &str>(MENU_COMMAND, [])),
bind!(MAIN_MODIFIER , j -> &focus_next),
bind!(MAIN_MODIFIER , k -> &focus_prev),
+ bind!(MAIN_MODIFIER.union(ModMask::SHIFT) , space -> &toggle_floating),
// { MODKEY, XK_j, focusstack, {.i = +1 } },
// { MODKEY, XK_k, focusstack, {.i = -1 } },
// { MODKEY, XK_i, incnmaster, {.i = +1 } },