unixchad/river-classic
1
0
Fork
You've already forked river-classic
0
forked from river/river-classic
river-classic with riverdeck
  • Zig 93%
  • Shell 3.6%
  • C 2.6%
  • Python 0.8%
Find a file
2026年04月01日 12:19:30 +08:00
.builds build: update to wlroots 0.20 2026年03月27日 18:50:21 +01:00
.gitea/issue_template codeberg: maybe fix issue template take 2 2024年03月25日 19:45:52 +01:00
common build: update to zig 0.14.0 2025年03月07日 12:44:28 +01:00
completions Seat: put all keyboards in a single group 2025年03月29日 15:54:45 +01:00
contrib contrib: mention default-layout command in FAQ 2022年10月26日 10:29:23 +02:00
doc docs: rename man page to river-classic(1) 2026年03月19日 13:38:32 +08:00
example example/init: Replace light with brightnessctl 2024年03月05日 12:05:55 +01:00
logo logo: use adaptive color/no background for readme 2024年04月08日 12:28:46 +02:00
misc Mod(README.md): add repo icon 2026年02月06日 22:25:01 +08:00
protocol build: update to wlroots 0.20 2026年03月27日 18:50:21 +01:00
river Server: listen for foreign toplevel capture request 2026年03月30日 10:17:51 +02:00
riverctl build: update to Zig 0.15 2025年08月22日 15:09:07 +02:00
riverdeck Docs: replace rivercarro with riverdeck 2026年02月15日 15:02:33 +08:00
.editorconfig editorconfig: reflect state of bash completion 2023年10月25日 19:13:53 +02:00
.gitignore build: update to Zig 0.13.0 2024年06月07日 14:10:24 +02:00
.mailmap mailmap: map Hugo's old emails to new one 2024年03月14日 11:12:30 +01:00
build.zig Merge branch 'river-master' 2026年03月31日 11:41:13 +08:00
build.zig.zon build: bump version to 0.3.16-dev 2026年03月31日 10:28:14 +02:00
CODE_OF_CONDUCT.md docs: redefine Code of Conduct scope 2024年04月09日 14:18:47 +02:00
CONTRIBUTING.md docs: migrate to codeberg 2024年03月22日 16:49:28 +01:00
LICENSE Relicense to GPL-3.0-or-later 2020年05月02日 19:21:10 +02:00
PACKAGING.md doc: rename to river-classic 2025年08月30日 18:56:31 +02:00
README.md Merge branch 'river-master' 2026年03月28日 18:15:21 +08:00

My build of river-classic

river-classic is a dynamic tiling Wayland compositor with flexible runtime configuration.

It is a fork of 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.

Changes I've made

  • river executable renamed to river-classic
  • rivertile replaced by riverdeck

For more changes see the commit history.

My river-classic configs are available on codeberg and github.

Features

river-classic's window management style is quite similar to dwm, xmonad, 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, river-classic uses a custom Wayland protocol and separate "layout generator" process. An advanced layout generator, riverdeck, is provided.

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.

river-classic is configured at runtime using the riverctl tool. It can define keybindings, set the active layout generator, configure input devices, and more. On startup, river-classic runs a user-defined init script which usually runs riverctl commands to set up the user's configuration.

Building

Note: If you are packaging river-classic for distribution, see PACKAGING.md.

To compile river-classic first ensure that you have the following dependencies installed. The "development" versions are required if applicable to your distribution.

  • zig 0.15
  • wayland
  • wayland-protocols
  • wlroots 0.20
  • xkbcommon
  • libevdev
  • pixman
  • pkg-config
  • scdoc (optional, but required for man page generation)

Then run, for example:

zig build -Doptimize=ReleaseSafe --prefix ~/.local install

To enable Xwayland support pass the -Dxwayland option as well. Run zig build -h to see a list of all options.

Usage

River can either be run nested in an X11/Wayland session or directly from a tty using KMS/DRM. Simply run the river command.

On startup river-classic will run an executable file at $XDG_CONFIG_HOME/river/init 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 perform other configuration.

An example init script with sane defaults is provided here in the example directory.

For complete documentation see the river(1), riverctl(1), and riverdeck(1) man pages.

Licensing

river-classic is released under the GNU General Public License v3.0 only.

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 this project are released under the ISC license (as stated in their copyright blocks).

The river logo is licensed under the CC BY-SA 4.0 license, see the license in the logo directory.

riverdeck is a fork of rivercarro, which is a fork of rivertile, they are licensed under the GNU General Public License v3.0 or later.