From 8fcca81755982b3d3cbc16161ab8a711dba2a304 Mon Sep 17 00:00:00 2001 From: Isaac Freund Date: Sat, 18 Apr 2020 14:53:21 +0200 Subject: Add binds to move views between outputs --- src/config.zig | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/config.zig') diff --git a/src/config.zig b/src/config.zig index 01d217d..f09dc1a 100644 --- a/src/config.zig +++ b/src/config.zig @@ -174,5 +174,20 @@ pub const Config = struct { .command = command.focusOutput, .arg = .{ .direction = .Prev }, }); + + // Mod+Shift+Period/Comma to send the focused view to the the + // next/previous output + try self.keybinds.append(Keybind{ + .keysym = c.XKB_KEY_period, + .modifiers = mod | c.WLR_MODIFIER_SHIFT, + .command = command.sendToOutput, + .arg = .{ .direction = .Next }, + }); + try self.keybinds.append(Keybind{ + .keysym = c.XKB_KEY_comma, + .modifiers = mod | c.WLR_MODIFIER_SHIFT, + .command = command.sendToOutput, + .arg = .{ .direction = .Prev }, + }); } }; -- cgit v1.2.3