aboutsummaryrefslogtreecommitdiff
path: root/riverctl/main.zig
diff options
context:
space:
mode:
authorLeon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de>2021-02-09 22:53:17 +0100
committerGitHub <noreply@github.com>2021-02-09 22:53:17 +0100
commitaeeae92611683f1330d56dc8cbbda93a6868d3c6 (patch)
tree93ccf4155c3fa139157b873db392dea49d6f4292 /riverctl/main.zig
parent98d51f6d24ef8cc9166833e89c26e7663dbb5831 (diff)
downloadriver-aeeae92611683f1330d56dc8cbbda93a6868d3c6.tar.gz
river-aeeae92611683f1330d56dc8cbbda93a6868d3c6.tar.xz
riverctl: add mod-option command
Diffstat (limited to 'riverctl/main.zig')
-rw-r--r--riverctl/main.zig2
1 files changed, 2 insertions, 0 deletions
diff --git a/riverctl/main.zig b/riverctl/main.zig
index 91e24c4..1f64233 100644
--- a/riverctl/main.zig
+++ b/riverctl/main.zig
@@ -58,6 +58,8 @@ pub fn main() !void {
try options.getOption(display, &globals);
} else if (os.argv.len > 2 and mem.eql(u8, "set-option", mem.span(os.argv[1]))) {
try options.setOption(display, &globals);
+ } else if (os.argv.len > 2 and mem.eql(u8, "mod-option", mem.span(os.argv[1]))) {
+ try options.modOption(display, &globals);
} else {
const control = globals.control orelse return error.RiverControlNotAdvertised;
const seat = globals.seat orelse return error.SeatNotAdverstised;