diff options
| author | Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de> | 2020-05-20 18:32:47 +0200 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-05-20 23:02:28 +0200 |
| commit | 7934cbfaeaca911bacefa7d4b98f43cb2a7526eb (patch) | |
| tree | e2646c42a0ee7a08bae9a9d0aac4eba73d328da8 /src/Config.zig | |
| parent | 3c5eaec50be53753301c2668a5e649ac2cdc4705 (diff) | |
| download | river-7934cbfaeaca911bacefa7d4b98f43cb2a7526eb.tar.gz river-7934cbfaeaca911bacefa7d4b98f43cb2a7526eb.tar.xz | |
Add layout command
Diffstat (limited to 'src/Config.zig')
| -rw-r--r-- | src/Config.zig | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/Config.zig b/src/Config.zig index a1a8b05..54eb58a 100644 --- a/src/Config.zig +++ b/src/Config.zig @@ -211,6 +211,35 @@ pub fn init(self: *Self, allocator: *std.mem.Allocator) !void { .command = try Command.init(&[_][]const u8{ "mode", "normal" }, allocator), }); + // Change master orientation with Mod+{Up,Right,Down,Left} + try normal.keybinds.append(.{ + .keysym = c.XKB_KEY_Up, + .modifiers = mod, + .command = try Command.init(&[_][]const u8{ "layout", "TopMaster" }, allocator), + }); + try normal.keybinds.append(.{ + .keysym = c.XKB_KEY_Right, + .modifiers = mod, + .command = try Command.init(&[_][]const u8{ "layout", "RightMaster" }, allocator), + }); + try normal.keybinds.append(.{ + .keysym = c.XKB_KEY_Down, + .modifiers = mod, + .command = try Command.init(&[_][]const u8{ "layout", "BottomMaster" }, allocator), + }); + try normal.keybinds.append(.{ + .keysym = c.XKB_KEY_Left, + .modifiers = mod, + .command = try Command.init(&[_][]const u8{ "layout", "LeftMaster" }, allocator), + }); + + // Mod+f to change to Full layout + try normal.keybinds.append(.{ + .keysym = c.XKB_KEY_f, + .modifiers = mod, + .command = try Command.init(&[_][]const u8{ "layout", "Full" }, allocator), + }); + // Float views with app_id "float" try self.float_filter.append("float"); } |
