River Classic Layer Generator
- Zig 100%
| examples | rewrite TOML parsing; use [tags.n] syntax | |
| libs | rewrite TOML parsing; use [tags.n] syntax | |
| protocols | add river dependencies | |
| src | remove debug log line | |
| .gitignore | Initial commit | |
| .gitmodules | rewrite TOML parsing; use [tags.n] syntax | |
| build.zig | rewrite TOML parsing; use [tags.n] syntax | |
| build.zig.zon | bump version | |
| LICENSE | set proper license and other bureaucracy | |
| mise.toml | add river dependencies | |
| README.md | update docs | |
Dnipro
Layout generator for River (classic)
It's aimed to be a bit more feature rich then rivertile.
Single tile would have 0 paddings.
Layout strategy is set for each workspace separately, as well as paddings and main ratio - I call it 'shift'.
You can use a TOML file for settings - by default the program looks for ~/.config/dnipro.toml. Look for examples/dnipro.toml
That's how your river init could look like if you are using Dnipro
riverctl map normal Super+Alt Right send-layout-cmd dnipro "shift-right 50"
riverctl map normal Super+Alt Down send-layout-cmd dnipro "shift-down 50"
riverctl map normal Super+Alt Left send-layout-cmd dnipro "shift-left 50"
riverctl map normal Super+Alt Up send-layout-cmd dnipro "shift-up 50"
riverctl map normal Super+Alt G send-layout-cmd dnipro "strategy grid"
riverctl map normal Super+Alt D send-layout-cmd dnipro "strategy master"
riverctl map normal Super+Alt M send-layout-cmd dnipro "strategy monocle"
Installation
zig build --prefix ~/.local -Doptimize=ReleaseSmall
I recommend ReleaseSmall, but you can also choose ReleaseSafe. ReleaseFast would make no difference human eye could catch, I believe. Don't forget to add ~/.local/bin to path!