From b2fbdf2d87e21c724d82eb59ef7f5dae26b39c7e Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Wed, 8 Apr 2020 17:43:00 +0200 Subject: Add keybind to close views --- src/config.zig | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/config.zig') diff --git a/src/config.zig b/src/config.zig index 7e70778..1434f07 100644 --- a/src/config.zig +++ b/src/config.zig @@ -75,5 +75,7 @@ pub const Config = struct { try self.keybinds.append(Keybind{ .keysym = c.XKB_KEY_0, .modifiers = mod, .command = command.focusTags, .arg = .{ .uint = 0xFFFFFFFF } }); try self.keybinds.append(Keybind{ .keysym = c.XKB_KEY_0, .modifiers = mod | c.WLR_MODIFIER_SHIFT, .command = command.setFocusedViewTags, .arg = .{ .uint = 0xFFFFFFFF } }); + + try self.keybinds.append(Keybind{ .keysym = c.XKB_KEY_q, .modifiers = mod, .command = command.close, .arg = .{ .none = {} } }); } }; -- cgit v1.2.3