Fix output configuration

Don't overwrite existing configuration. Previously, the configuration:

output WLC-1 position 1680,0
output WLC-1 background ~/background.png stretch

Would discard the positioning information.

This change fixes this, but removes support for combining different output
subcommands, to simplify error handling in individual subcommands.
This commit is contained in:
Christoph Gysin 2015-11-29 00:50:48 +02:00
parent 01617131f1
commit 80d628dffe
2 changed files with 89 additions and 75 deletions

View file

@ -133,10 +133,6 @@ Commands
Disables the specified output.
**NOTES FOR THE OUTPUT COMMAND**::
You may combine output commands into one, like so:
+
output HDMI-A-1 res 1920x1080 pos 1920,0 bg ~/wallpaper.png stretch
+
You can get a list of output names like so:
+
swaymsg -t get_outputs