Add exit_river keybinding

Recently, river removed the hardcoded Ctrl+Alt Delete keybinding that
exits river and replaces it with a new `exit_session` request. This adds
support for that request via the new `exit_session` bind. We also added
3 hardcoded default keybinds to: exit river, reload the config, and
open foot. This way, if the config fails to load or is missing, you
should still be able to try reload. I guess you're still SOL if you have
at least one keybind and it's not reload_config, but you do what you can
do.
This commit is contained in:
Ben Buhse 2026-03-06 09:21:07 -06:00
commit 678d0563ed
No known key found for this signature in database
GPG key ID: 7916ACFCD38FD0B4
11 changed files with 293 additions and 108 deletions

View file

@ -62,8 +62,13 @@ Run `zig build -h` to see a list of all options.
You can either add `beansprout` to the river `init` file or directly run `river -c beansprout`.
If you need to exit river, for example, if `beansprout` crashes, you can use river's hardcoded
`Ctrl+Alt+Delete` keybind.
If no keybinds are configured (e.g. missing or broken config), beansprout provides
fallback keybinds including `Ctrl+Alt+Delete` to exit the River session, `Super+Shift+R`
to reload config, and `Super+T` to spawn a terminal.
If beansprout crashes, you can use River's hardcoded `Ctrl+Alt F1``F12` bindings to
switch to another TTY. From there, you can kill River or restart beansprout (you will
need to set `WAYLAND_DISPLAY` yourself, e.g. `WAYLAND_DISPLAY=wayland-1 beansprout`).
## Configuration