Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

river

river is a dynamic tiling Wayland compositor. Its configuration is a shell script, init, that runs riverctl commands; the layout (where windows go) is drawn by a separate program, rivertile. Workspaces are tags, as in dwm.

Login screengreetd
Terminalkitty
BarWaybar
Launchersfuzzel, nwggrid, d77run
NotificationsSwayNotificationCenter
Lock screenswaylock, with Super + T or after 5 minutes idle; screen off after 10
File manager, mail, browserPCManFM, Geary, Brave

Where to change things

WhatFile
keys, programs started with the session, keyboard, window rules, layout~/.config/river/init
the bar~/.config/waybar/config_river.jsonc and the style files next to it
notifications~/.config/swaync/
lock screen~/.config/swaylock/config

Programs started with the session are the riverctl spawn lines. init runs when river starts, so log out and in again after changing it (or run a single riverctl command in a terminal to try it right away). The original is in /etc/skel/.config/river/init.

Keys

Super is the modifier.

KeysAction
Super + Shift + Returnterminal
Super + Afuzzel (application launcher)
Super + Nnwggrid (application grid)
Super + Rd77run
Super + Shift + Ffile manager
Super + Mmail
Super + Wweb browser
Super + Pscreenshot (grim)
Super + Tlock screen
Super + Xpower menu
Super + Qclose window
Super + J / Super + Kfocus next / previous window
Super + Shift + J / Super + Shift + Kswap with the next / previous window
Super + Returnmove the window to the main area
Super + H / Super + Lshrink / grow the main area
Super + Shift + H / Super + Shift + Lone more / one fewer window in the main area
Super + arrowsput the main area at the top, right, bottom or left
Super + Spacefloat or tile the window
Super + Ffull screen
Super + 1 … 9go to tag
Super + Shift + 1 … 9move window to tag
Super + 0show all tags
Super + Shift + Pshow or hide the scratchpad
Super + Shift + Osend the window to the scratchpad
Super + . / Super + ,focus the next / previous monitor
Super + left / right / middle mouse buttonmove / resize / float a window
Super + F11pass all keys to the window (again to return)
Super + Shift + Eexit river

Idle

After 5 minutes without input the screen locks (swaylock), after 10 it turns off and comes back on with any input, and it always locks before the computer suspends. This is /usr/bin/screenlock, started with the session.

On installations made from ISOs built before 16 October 2026 the screen locks but never turns off. To fix it, install wlopm:

sudo xbps-install -S wlopm

and, in /usr/bin/screenlock, replace both swaymsg "output * power off" and swaymsg "output * power on" with wlopm --off '*' and wlopm --on '*'.

Keyboard layout

In init:

riverctl keyboard-layout pt

Wallpaper

The line riverctl spawn "swaybg -i ~/Wallpaper/background1.png" sets it at start-up; change the file name to another image in ~/Wallpaper/.