From 84de02986a1a913113dbf0e66af264795b7a40d8 Mon Sep 17 00:00:00 2001 From: Versus Void Date: Mon, 2 Oct 2017 15:17:35 +0300 Subject: [PATCH 1/2] Add examples/wlr-example.ini.example with option descriptions for examples --- examples/wlr-example.ini.example | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 examples/wlr-example.ini.example diff --git a/examples/wlr-example.ini.example b/examples/wlr-example.ini.example new file mode 100644 index 00000000..58e5816b --- /dev/null +++ b/examples/wlr-example.ini.example @@ -0,0 +1,26 @@ +# Single output configuration. String after semicolon must match output's name. +[output:VGA-1] +# Set logical (layout) coordinates for this screen +x = 1920 +y = 0 + +# Screen transformation +# possible values are: +# '90', '180' or '270' - rotate output by specified angle clockwise +# 'flipped' - flip output horizontally +# 'flipped-90', 'flipped-180', 'flipped-270' - flip output horizontally +# and rotate by specified angle +rotate = 90 + +[cursor] +# Restrict cursor movements to single output +map-to-output = VGA-1 +# Restrict cursor movements to concrete rectangle +geometry = 2500x800 + +# Single device configuration. String after semicolon must match device's name. +[device:PixArt Dell MS116 USB Optical Mouse] +# Restrict cursor movements for this mouse to single output +map-to-output = VGA-1 +# Restrict cursor movements for this mouse to concrete rectangle +geometry = 2500x800 From e88f3887caf588be5aaf6e286c77432976562893 Mon Sep 17 00:00:00 2001 From: Versus Void Date: Mon, 2 Oct 2017 16:17:34 +0000 Subject: [PATCH 2/2] Move wlr-example.ini.example to rootston.ini.example and reference it from examples' config parser --- examples/config.c | 2 +- .../wlr-example.ini.example => rootston/rootston.ini.example | 0 2 files changed, 1 insertion(+), 1 deletion(-) rename examples/wlr-example.ini.example => rootston/rootston.ini.example (100%) diff --git a/examples/config.c b/examples/config.c index f04f92d2..0ef025c0 100644 --- a/examples/config.c +++ b/examples/config.c @@ -19,7 +19,7 @@ static void usage(const char *name, int ret) { "\n" " -C Path to the configuration file\n" " (default: wlr-example.ini).\n" - " See `examples/wlr-example.ini.example` for config\n" + " See `rootston/rootston.ini.example` for config\n" " file documentation.\n", name); exit(ret); diff --git a/examples/wlr-example.ini.example b/rootston/rootston.ini.example similarity index 100% rename from examples/wlr-example.ini.example rename to rootston/rootston.ini.example