aboutsummaryrefslogtreecommitdiff
path: root/src/Command.zig
diff options
context:
space:
mode:
authorLeon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de>2020-05-20 18:32:47 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2020-05-20 23:02:28 +0200
commit7934cbfaeaca911bacefa7d4b98f43cb2a7526eb (patch)
treee2646c42a0ee7a08bae9a9d0aac4eba73d328da8 /src/Command.zig
parent3c5eaec50be53753301c2668a5e649ac2cdc4705 (diff)
downloadriver-7934cbfaeaca911bacefa7d4b98f43cb2a7526eb.tar.gz
river-7934cbfaeaca911bacefa7d4b98f43cb2a7526eb.tar.xz
Add layout command
Diffstat (limited to 'src/Command.zig')
-rw-r--r--src/Command.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Command.zig b/src/Command.zig
index a7c2e1d..58c58d3 100644
--- a/src/Command.zig
+++ b/src/Command.zig
@@ -28,6 +28,7 @@ const command = struct {
const focusAllTags = @import("command/focus_all_tags.zig").focusAllTags;
const focusOutput = @import("command/focus_output.zig").focusOutput;
const focusTag = @import("command/focus_tag.zig").focusTag;
+ const layout = @import("command/layout.zig").layout;
const modMasterCount = @import("command/mod_master_count.zig").modMasterCount;
const modMasterFactor = @import("command/mod_master_factor.zig").modMasterFactor;
const mode = @import("command/mode.zig").mode;
@@ -101,6 +102,7 @@ const str_to_read_fn = [_]Definition{
.{ .name = "focus_all_tags", .arg_type = .none, .impl = command.focusAllTags },
.{ .name = "focus_output", .arg_type = .direction, .impl = command.focusOutput },
.{ .name = "focus_tag", .arg_type = .uint, .impl = command.focusTag },
+ .{ .name = "layout", .arg_type = .str, .impl = command.layout},
.{ .name = "mod_master_count", .arg_type = .int, .impl = command.modMasterCount },
.{ .name = "mod_master_factor", .arg_type = .float, .impl = command.modMasterFactor },
.{ .name = "mode", .arg_type = .str, .impl = command.mode },