From 8a326541f6728749dd24b786960dadc2148f0f43 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Wed, 15 Apr 2020 19:16:55 +0200 Subject: Add keybinds to cycle between outputs --- src/config.zig | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/config.zig') diff --git a/src/config.zig b/src/config.zig index cbbdcea..b7be734 100644 --- a/src/config.zig +++ b/src/config.zig @@ -96,5 +96,9 @@ pub const Config = struct { // Mod+Shift+0 to tag focused view with all tags try self.keybinds.append(Keybind{ .keysym = c.XKB_KEY_0, .modifiers = mod | c.WLR_MODIFIER_SHIFT, .command = command.setFocusedViewTags, .arg = .{ .uint = 0xFFFFFFFF } }); + + // Mod+Period and Mod+Comma to focus the next/previous output + try self.keybinds.append(Keybind{ .keysym = c.XKB_KEY_period, .modifiers = mod, .command = command.focusNextOutput, .arg = .{ .none = {} } }); + try self.keybinds.append(Keybind{ .keysym = c.XKB_KEY_comma, .modifiers = mod, .command = command.focusPrevOutput, .arg = .{ .none = {} } }); } }; -- cgit v1.2.3