caelestia-niri/README.md

4.5 KiB

caelestia-niri

A desktop shell for the niri compositor, written in Rust. It is a port of caelestia-kde, itself a port of caelestia-dots/shell: the bar, drawers, dashboard, launcher, lock screen, notifications and settings, with colours taken from your wallpaper.

The desktop

Dashboard Settings
Dashboard Settings

What is in it

  • Bar and panels: workspaces, tray, status icons, media, and panels of your own, floating or attached to the border.
  • Dashboard: calendar, media with lyrics, performance, weather, notes and a small terminal.
  • Launcher: apps, clipboard history, calculator, schemes, and a row of wallpapers.
  • Nexus: the settings app. No other settings app is needed.
  • Windows: Mod and the arrows snap windows on niri's own layout, and four corners make a 2×2 grid.
  • Screen capture: region, window, screen, scrolling capture, text, GIF and recording.
  • Also: notifications and toasts, a lock screen, desktop widgets and icons, game mode, task manager, colour picker, QR codes, Discord presence.

Install

Arch is the tested system. Fedora and Debian package names are best effort.

git clone forgejo:astar76/caelestia-niri.git
cd caelestia-niri
./install.sh --dry-run    # go through every screen, nothing is changed
./install.sh              # the real thing

The installer is a full-screen list of ticks: packages, keybinds, a terminal setup of kitty, fish, fastfetch and starship, and what a bare niri lacks: screen sharing and file pickers (portals), a keyring unlocked at login, Qt theming, automount, night light (wlsunset), clipboard history, X11 tray icons, video wallpapers (mpvpaper, off by default) and the lock's PAM file. A file it replaces is kept as .bak-caelestia. Everything installs in one go after one password, and by default it removes the build tools it added when it is done. ./install.sh --yes asks nothing and takes the default ticks, except the login screen. ./uninstall.sh takes it out again.

Its app pages (terminal, file manager, editor, browser, Discord, music, extras) put apps made to match this shell first, marked recommended and ticked while not installed: Damson (editor), Nacre (browser), Mulberry and Audiphi (music). Each comes from its latest release on Astar Hub and installs into ~/.local with the installer in its archive. They only show when that download answers, so off the hub's network the pages list packages alone.

The lock is the shell's own, but it stays swaylock until you have tried it once with caelestia shell lock preview; the installer offers that at the end when the shell is running.

Keys

Keys Does
Mod+Space Launcher
Mod+D, Mod+A, Mod+N Dashboard, utilities, notifications
Mod+Comma Settings
Mod+V, Mod+Y Clipboard history, wallpapers
Mod+X Session menu
Mod+Alt+L Lock
Mod and the arrows Snap a window. Two arrows make a corner, and opposite arrows centre it
Mod+Wheel Move between windows
Mod+Ctrl+Escape Force quit the window
Ctrl+Shift+Escape Task manager
Mod+Shift+C Colour picker
Print Screen capture

All of them are in ~/.config/niri/caelestia.kdl, and Nexus has a page to change them.

Where the files are

What Where
Settings (shell.json, cli.json, templates) ~/.config/niri/caelestia/
niri includes (caelestia.kdl, caelestia-binds.kdl, caelestia-windowrules.kdl, ...) ~/.config/niri/, next to config.kdl
State (scheme.json, wallpaper, notifications, lock proof) ~/.local/state/niri-caelestia/
Your data (desktop layout) ~/.local/share/niri-caelestia/
Cache (lyrics, covers, notification images) ~/.cache/niri-caelestia/

The first start copies an older ~/.config/caelestia, ~/.local/state/caelestia and ~/.local/share/caelestia into these places. The old folders are never changed or deleted, and are read while the new ones are missing. The CLI keeps writing scheme.json to the old state folder too, for apps that read the palette there.

Building by hand

cargo build --release
./target/release/caelestia niri install
./target/release/caelestia shell

Design and status notes are in docs/HANDOFF.md and docs/AUDIT.md.

GPL-3.0-or-later.