From 84de02986a1a913113dbf0e66af264795b7a40d8 Mon Sep 17 00:00:00 2001 From: Versus Void Date: Mon, 2 Oct 2017 15:17:35 +0300 Subject: 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 (limited to 'examples') 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 -- cgit v1.2.3 From e88f3887caf588be5aaf6e286c77432976562893 Mon Sep 17 00:00:00 2001 From: Versus Void Date: Mon, 2 Oct 2017 16:17:34 +0000 Subject: Move wlr-example.ini.example to rootston.ini.example and reference it from examples' config parser --- examples/config.c | 2 +- examples/wlr-example.ini.example | 26 -------------------------- rootston/rootston.ini.example | 26 ++++++++++++++++++++++++++ 3 files changed, 27 insertions(+), 27 deletions(-) delete mode 100644 examples/wlr-example.ini.example create mode 100644 rootston/rootston.ini.example (limited to 'examples') 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/examples/wlr-example.ini.example deleted file mode 100644 index 58e5816b..00000000 --- a/examples/wlr-example.ini.example +++ /dev/null @@ -1,26 +0,0 @@ -# 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 diff --git a/rootston/rootston.ini.example b/rootston/rootston.ini.example new file mode 100644 index 00000000..58e5816b --- /dev/null +++ b/rootston/rootston.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 -- cgit v1.2.3