aboutsummaryrefslogtreecommitdiff
path: root/src/config.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/config.zig')
-rw-r--r--src/config.zig15
1 files changed, 15 insertions, 0 deletions
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 },
+ });
}
};