diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-18 14:53:21 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-18 14:53:21 +0200 |
| commit | 8fcca81755982b3d3cbc16161ab8a711dba2a304 (patch) | |
| tree | 2f0a424cde5cbc06027da30a3968edbad823dca4 /src/config.zig | |
| parent | 64a3b72a1cca547eecc52ba33e832c7b1700b31b (diff) | |
| download | river-8fcca81755982b3d3cbc16161ab8a711dba2a304.tar.gz river-8fcca81755982b3d3cbc16161ab8a711dba2a304.tar.xz | |
Add binds to move views between outputs
Diffstat (limited to 'src/config.zig')
| -rw-r--r-- | src/config.zig | 15 |
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 }, + }); } }; |
