diff options
| author | Isaac Freund <ifreund@ifreund.xyz> | 2020-12-30 20:29:45 +0100 |
|---|---|---|
| committer | Isaac Freund <ifreund@ifreund.xyz> | 2020-12-30 20:29:45 +0100 |
| commit | 53d4c12d41a904d36fe294c7ab5573a7d6e00e30 (patch) | |
| tree | 3872041127e56f1e3f31ae693f6266ed51b48324 /doc | |
| parent | c7bc47d6d4ca11ad0cc3a0216b8e45d232fc30fa (diff) | |
| download | river-53d4c12d41a904d36fe294c7ab5573a7d6e00e30.tar.gz river-53d4c12d41a904d36fe294c7ab5573a7d6e00e30.tar.xz | |
docs: improve startup and config information
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/river.1.scd | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/doc/river.1.scd b/doc/river.1.scd index b20bd7a..9d5f5b0 100644 --- a/doc/river.1.scd +++ b/doc/river.1.scd @@ -16,13 +16,9 @@ on wlroots and written in Zig. # OPTIONS *-c* _shell_command_ - Run a shell command or give the path to a script that will be run after - river's wayland server is initialized but before entering the main - loop. You may use this to configure river and define keymaps using - *riverctl*(1), start programs such as a status bar, or perhaps run a - service manager. If the process started by this flag is still running - when river exits, river will send SIGTERM and and wait for it to - terminate. + Override the default search paths for an init executable: instead + _shell_command_ will be run with `/bin/sh -c`. See the *CONFIGURATION* + section for more details. *-l* _log_level_ Set the log level of river to a value from 0 to 7 with 0 being the @@ -31,8 +27,20 @@ on wlroots and written in Zig. # CONFIGURATION -Experimental XWayland support can be enabled on compile-time with the -_-Dxwayland=true_ flag. +On startup river will look for and run an executable file at one of the +following locations, checked in the order listed: + +- $XDG_CONFIG_HOME/river/init +- $HOME/.config/river/init +- /etc/river/init + +This executable init file will be run after river's wayland server is +initialized but before entering the main loop. If the process started by +this flag is still running when river exits, river will send SIGTERM and +and wait for it to terminate. + +Usually this will be a shell script invoking *riverctl*(1) to create mappings, +start programs such as a status bar, and preform other configuration. # ENVIRONMENT @@ -45,6 +53,12 @@ The following environment variables are used to configure the keyboard. See - XKB_DEFAULT_OPTIONS - XKB_DEFAULT_RULES +# EXAMPLES + +Set the keyboard layout to colemak: + + XKB_DEFAULT_LAYOUT="us(colemak)" river + # AUTHORS Maintained by Isaac Freund <ifreund@ifreund.xyz> who is assisted by open |
