1
1
Fork
You've already forked dnipro
0
River Classic Layer Generator
  • Zig 100%
Find a file
2026年03月23日 17:37:04 +02:00
examples rewrite TOML parsing; use [tags.n] syntax 2026年02月03日 19:58:36 +02:00
libs rewrite TOML parsing; use [tags.n] syntax 2026年02月03日 19:58:36 +02:00
protocols add river dependencies 2026年01月19日 13:45:15 +02:00
src remove debug log line 2026年03月23日 17:37:04 +02:00
.gitignore Initial commit 2026年01月19日 12:13:25 +01:00
.gitmodules rewrite TOML parsing; use [tags.n] syntax 2026年02月03日 19:58:36 +02:00
build.zig rewrite TOML parsing; use [tags.n] syntax 2026年02月03日 19:58:36 +02:00
build.zig.zon bump version 2026年02月05日 17:07:43 +02:00
LICENSE set proper license and other bureaucracy 2026年01月28日 16:34:13 +02:00
mise.toml add river dependencies 2026年01月19日 13:45:15 +02:00
README.md update docs 2026年02月05日 17:06:48 +02:00

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!