diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-15 19:16:55 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-04-15 19:16:55 +0200 |
| commit | 8a326541f6728749dd24b786960dadc2148f0f43 (patch) | |
| tree | d8b6c16bba96442018730ad8839287f82aa8f9b2 /src/config.zig | |
| parent | f33b1fa3e830b677fa5c2f797513b09775984562 (diff) | |
| download | river-8a326541f6728749dd24b786960dadc2148f0f43.tar.gz river-8a326541f6728749dd24b786960dadc2148f0f43.tar.xz | |
Add keybinds to cycle between outputs
Diffstat (limited to 'src/config.zig')
| -rw-r--r-- | src/config.zig | 4 |
1 files changed, 4 insertions, 0 deletions
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 = {} } }); } }; |
