From b5601a6eb3a8d0603bb837a847701d3d49f984c3 Mon Sep 17 00:00:00 2001 From: tcmal Date: Fri, 30 Aug 2024 15:48:34 +0100 Subject: Add bind for killing clients --- src/config.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index f052c22..f806df4 100644 --- a/src/config.rs +++ b/src/config.rs @@ -9,8 +9,8 @@ use crate::{ clients::TagFocus, conn_info::Colour, helpers::{ - focus_next, focus_prev, mouse_move, mouse_resize, set_tag, set_tag_focus, spawn, - toggle_floating, toggle_fullscreen, + focus_next, focus_prev, kill_client, mouse_move, mouse_resize, set_tag, set_tag_focus, + spawn, toggle_floating, toggle_fullscreen, }, keys::Keybinds, }; @@ -49,6 +49,7 @@ pub const KEYBINDS: Keybinds = Keybinds(&[ bind!(MAIN_MODIFIER , k -> &focus_prev), 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), bind!(MAIN_MODIFIER , _1 -> &|wm| set_tag_focus(wm, TagFocus::Tag(1))), bind!(MAIN_MODIFIER , _2 -> &|wm| set_tag_focus(wm, TagFocus::Tag(2))), bind!(MAIN_MODIFIER , _3 -> &|wm| set_tag_focus(wm, TagFocus::Tag(3))), -- cgit v1.2.3