Files
river/README.md
T

106 lines
4.2 KiB
Markdown
Raw Normal View History

2025-08-30 18:52:39 +02:00
# river-classic
2024-03-21 10:35:46 +01:00
2025-08-30 18:52:39 +02:00
river-classic is a dynamic tiling Wayland compositor with flexible runtime
2025-08-30 19:23:24 +02:00
configuration.
It is a fork of [river](https://codeberg.org/river/river) 0.3 intended for users
that are happy with how river 0.3 works and do not wish to deal with the majorly
breaking changes planned for the river 0.4.0 release.
2020-03-28 18:02:38 +01:00
2023-02-03 18:24:22 +01:00
Join us at [#river](https://web.libera.chat/?channels=#river) on irc.libera.chat —
2024-04-09 08:57:17 +02:00
Read our man pages, [wiki](https://codeberg.org/river/wiki), and
[Code of Conduct](CODE_OF_CONDUCT.md)
2020-03-28 18:02:38 +01:00
2025-08-30 18:52:39 +02:00
The main repository is on [codeberg](https://codeberg.org/river/river-classic),
2024-03-22 16:49:28 +01:00
which is where the issue tracker may be found and where contributions are accepted.
2025-08-30 18:52:39 +02:00
Read-only mirrors exist on [sourcehut](https://git.sr.ht/~ifreund/river-classic)
and [github](https://github.com/riverwm/river-classic).
2020-03-28 18:02:38 +01:00
## Features
2020-03-28 18:02:38 +01:00
2025-08-30 18:52:39 +02:00
river-classic's window management style is quite similar to
[dwm](http://dwm.suckless.org), [xmonad](https://xmonad.org), and other classic
dynamic tiling X11 window managers. Windows are automatically arranged in a tiled
layout and shifted around as windows are opened/closed.
Rather than having the tiled layout logic built into the compositor process,
2025-08-30 18:52:39 +02:00
river-classic uses a [custom Wayland
protocol](https://codeberg.org/river/river-classic/src/branch/master/protocol/river-layout-v3.xml)
and separate "layout generator" process. A basic layout generator, `rivertile`,
is provided but users are encouraged to use community-developed [layout
generators](https://codeberg.org/river/wiki/src/branch/master/pages/Community-Layouts.md)
or write their own. Examples in C and Python may be found
2025-08-30 18:52:39 +02:00
[here](https://codeberg.org/river/river-classic/src/branch/master/contrib).
Tags are used to organize windows rather than workspaces. A window may be
assigned to one or more tags. Likewise, one or more tags may be displayed on a
monitor at a time.
2025-12-10 20:24:22 +01:00
river-classic is configured at runtime using the `riverctl` tool. It can define
keybindings, set the active layout generator, configure input devices, and more.
2025-08-30 18:52:39 +02:00
On startup, river-classic runs a user-defined init script which usually runs
`riverctl` commands to set up the user's configuration.
2020-03-28 18:02:38 +01:00
2020-04-12 14:12:48 +02:00
## Building
2025-08-30 18:52:39 +02:00
Note: If you are packaging river-classic for distribution, see [PACKAGING.md](PACKAGING.md).
2020-11-02 13:59:59 +01:00
2025-08-30 18:52:39 +02:00
To compile river-classic first ensure that you have the following dependencies
2021-11-03 13:40:46 +01:00
installed. The "development" versions are required if applicable to your
distribution.
2020-04-12 14:12:48 +02:00
2025-07-11 18:08:50 +02:00
- [zig](https://ziglang.org/download/) 0.15
2020-04-12 14:12:48 +02:00
- wayland
- wayland-protocols
2025-04-26 13:50:28 +02:00
- [wlroots](https://gitlab.freedesktop.org/wlroots/wlroots) 0.19
2020-04-12 14:12:48 +02:00
- xkbcommon
2020-08-24 14:52:47 +02:00
- libevdev
2020-05-28 16:27:49 +02:00
- pixman
- pkg-config
2020-06-16 17:39:46 +02:00
- scdoc (optional, but required for man page generation)
2020-04-12 14:12:48 +02:00
Then run, for example:
```
2023-10-16 16:18:36 +02:00
zig build -Doptimize=ReleaseSafe --prefix ~/.local install
```
2024-05-20 11:33:04 +02:00
To enable Xwayland support pass the `-Dxwayland` option as well.
2024-07-07 18:44:07 +02:00
Run `zig build -h` to see a list of all options.
2022-05-22 15:35:16 +02:00
## Usage
2021-07-26 12:20:48 +02:00
River can either be run nested in an X11/Wayland session or directly
from a tty using KMS/DRM. Simply run the `river` command.
2020-04-12 14:12:48 +02:00
2025-08-30 18:52:39 +02:00
On startup river-classic will run an executable file at `$XDG_CONFIG_HOME/river/init`
2021-07-20 02:20:02 +02:00
if such an executable exists. If `$XDG_CONFIG_HOME` is not set,
`~/.config/river/init` will be used instead.
Usually this executable is a shell script invoking *riverctl*(1) to create
mappings, start programs such as a layout generator or status bar, and
2022-01-23 06:07:34 -05:00
perform other configuration.
An example init script with sane defaults is provided [here](example/init)
in the example directory.
2020-04-14 00:40:43 +02:00
For complete documentation see the `river(1)`, `riverctl(1)`, and
`rivertile(1)` man pages.
## Donate
2025-08-30 18:52:39 +02:00
If my work on river-classic adds value to your life and you'd like to support me
financially you can find donation information [here](https://isaacfreund.com/donate/).
2020-06-05 10:34:26 +02:00
## Licensing
2020-05-26 23:13:43 +02:00
2025-08-30 18:52:39 +02:00
river-classic is released under the GNU General Public License v3.0 only.
2020-05-26 23:13:43 +02:00
2020-05-26 23:15:51 +02:00
The protocols in the `protocol` directory are released under various licenses by
various parties. You should refer to the copyright block of each protocol for
the licensing information. The protocols prefixed with `river` and developed by
2020-05-26 23:13:43 +02:00
this project are released under the ISC license (as stated in their copyright
blocks).
2024-03-21 10:35:46 +01:00
The river logo is licensed under the CC BY-SA 4.0 license, see the
[license](logo/LICENSE) in the logo directory.