aboutsummaryrefslogtreecommitdiff
path: root/sway/commands.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2015-08-23 14:34:20 -0400
committerDrew DeVault <sir@cmpwn.com>2015-08-23 14:34:20 -0400
commit663f53b22a0d97a300345090a92b8567b6a0af82 (patch)
tree45f2c39c1f883e1b80877c29848003c8ee2c1efc /sway/commands.c
parente78221e6a0413b8cccd41f75288798ae15b792b6 (diff)
parent7a213889974daad72fd6b925edc3dc2cf1a394a1 (diff)
Merge pull request #123 from Luminarys/master
Added in output disabling
Diffstat (limited to 'sway/commands.c')
-rw-r--r--sway/commands.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sway/commands.c b/sway/commands.c
index 5de1fb0c..7ee8c558 100644
--- a/sway/commands.c
+++ b/sway/commands.c
@@ -372,8 +372,13 @@ static bool cmd_output(struct sway_config *config, int argc, char **argv) {
struct output_config *output = calloc(1, sizeof(struct output_config));
output->x = output->y = output->width = output->height = -1;
output->name = strdup(argv[0]);
+ output->enabled = true;
// TODO: atoi doesn't handle invalid numbers
+
+ if (strcasecmp(argv[1], "disable") == 0) {
+ output->enabled = false;
+ }
int i;
for (i = 1; i < argc; ++i) {