aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorIsaac Freund <ifreund@ifreund.xyz>2021-04-15 00:28:39 +0200
committerIsaac Freund <ifreund@ifreund.xyz>2021-04-20 18:27:03 +0200
commitd08032d6850d28063c0715aa54b1c18e0d0b966d (patch)
tree582f6e1ef56b395ccf599708136589ee09cdcb7f /doc
parent33fb7725c5a9d68d28bc2a30537210518aef3486 (diff)
downloadriver-d08032d6850d28063c0715aa54b1c18e0d0b966d.tar.gz
river-d08032d6850d28063c0715aa54b1c18e0d0b966d.tar.xz
river-options: rework, bump to v2
Options are now all global but may be overridden per-output. If an output local value is requested but none has been set, the global value is provided instead. This makes for much better ergonomics when configuring layout related options in particular.
Diffstat (limited to 'doc')
-rw-r--r--doc/riverctl.1.scd42
-rw-r--r--doc/rivertile.1.scd31
2 files changed, 40 insertions, 33 deletions
diff --git a/doc/riverctl.1.scd b/doc/riverctl.1.scd
index 0d17e44..a5c444d 100644
--- a/doc/riverctl.1.scd
+++ b/doc/riverctl.1.scd
@@ -259,11 +259,15 @@ scoped either globally or per-output if the *-output* flag is passed with the
name of the output as obtained from the xdg-output protocol. Alternatively,
the currently focused output may be targeted with the *-focused-output* flag.
-*declare-option* [*-output* _output_name_|*-focused-output*] _name_ _type_ _value_
+*declare-option* _name_ _type_ _value_
Declare a new option with the given _type_ and initial _value_. If
- the option already exists with the given _type_, it is still set
- to _value_. If the option already exists with a different type,
- nothing happens.
+ the option already exists, this command does nothing. The following
+ types are available:
+
+ - _int_: a signed 32-bit integer
+ - _uint_: an unsigned 32-bit integer
+ - _fixed_: a signed 24.8 bit fixed point number
+ - _string_: a string of bytes, may be null
*get-option* [*-output* _output_name_|*-focused-output*] _name_
Print the current value of the given option to stdout.
@@ -271,36 +275,24 @@ the currently focused output may be targeted with the *-focused-output* flag.
*set-option* [*-output* _output_name_|*-focused-output*] _name_ _value_
Set the value of the specified option to _value_.
+*unset-option* (*-output* _output_name_|*-focused-output*) _name_
+ Unset the value of the specified option for the given output and
+ cause it to fall back to the global value. Either the *-output* or
+ *-focused-output* flag is required.
+
*mod-option* [*-output* _output_name_|*-focused-output*] _name_ _value_
Add _value_ to the value of the specified option. _value_ can be negative.
-River declares certain default options for all outputs.
-
-*output_title* (string)
- Changing this option changes the title of the wayland and X11 backend
- outputs.
+River declares certain default options which will always be available:
*layout* (string)
The layout namespace used to determine which layout should arrange this
output. If set to null or no layout with this namespace exists for this
output, the output will enter floating mode. Defaults to null.
-*main_amount* (uint, optional hint for layouts)
- An arbitrary positive integer indicating the amount of main views. Defaults
- to 1.
-
-*main_factor* (float, optional hint for layouts)
- A floating point numger indicating the relative size of the area reserved
- for main views. Note that layouts commonly expect values between 0.1 and 0.9.
- Defaults to 0.6.
-
-*view_padding* (uint, optional hint for layouts)
- A positive integer indicating the padding in of pixels between / around
- views. Defaults to 10.
-
-*outer_padding* (uint, optional hint for layouts)
- A positive integer indicating the padding in of pixels around the layut.
- Defaults to 10.
+*output_title* (string)
+ Changing this option changes the title of the wayland and X11 backend
+ outputs.
# EXAMPLES
diff --git a/doc/rivertile.1.scd b/doc/rivertile.1.scd
index cbf8f32..b099a21 100644
--- a/doc/rivertile.1.scd
+++ b/doc/rivertile.1.scd
@@ -10,15 +10,31 @@ rivertile - Tiled layout generator for river
# DESCRIPTION
-*rivertile* is a layout client for river. It provides four tiled layouts per
-output with split main/secondary stacks with the main area in different
-positions.
+*rivertile* is a layout client for river. It provides a simple tiled layout
+split main/secondary stacks.
-The namespaces of the four layouts are "tile-top", "tile-right", "tile-bottom"
-and "tile-left", corresponding to the position of the main area.
+# OPTIONS
-*rivertile* uses the *main_amount*, *main_factor*, *view_padding* and
-*outer_padding* options.
+These options may be set using *riverctl*(1) or another river-options
+wayland client. *rivertile* declares these options on startup, so setting
+these options before starting rivertile requires them to be declared manually.
+
+*main_location* (string, default "top")
+ The location of the main area. Vaild locations are "top", "bottom",
+ "left", and "right".
+
+*main_count* (uint, default 1)
+ The number of main views.
+
+*main_factor* (fixed, default 0.6)
+ The percentage of the layout area reserved for main views. *rivertle*
+ clamps this to the range `[0.1, 0.9]`.
+
+*view_padding* (uint, default 6)
+ Padding around every view in pixels.
+
+*outer_padding* (uint, default 6)
+ Padding around the edge of the layout area in pixels.
# AUTHORS
@@ -29,4 +45,3 @@ source contributors. For more information about river's development, see
# SEE ALSO
*river*(1), *riverctl*(1)
-