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

Getting Started

This guide walks you through your first session with Mosaico.

1. Generate Configuration Files

Create the default configuration files in ~/.config/mosaico/:

mosaico init

This generates the following files:

FilePurpose
config.tomlLayout, border, theme, and logging settings
keybindings.tomlKeyboard shortcut mappings
rules.tomlCommunity rules (auto-updated on daemon startup)
user-rules.tomlPersonal rule overrides (never overwritten)
bar.tomlStatus bar settings

Existing files are never overwritten, so it is safe to run init again.

2. Start the Window Manager

mosaico start

Mosaico launches a background daemon that immediately tiles all visible windows on your desktop. You will see a startup banner with your config directory, the daemon PID, and a helpful tip.

3. Navigate with Keyboard Shortcuts

The default keybindings use vim-style motions:

ShortcutAction
Alt + H/J/K/LFocus left/down/up/right
Alt + Shift + H/J/K/LMove or swap the focused window
Alt + 1 .. Alt + 8Switch to workspace 1-8
Alt + Shift + 1 .. Alt + Shift + 8Send focused window to workspace 1-8
Alt + NCycle layout (BSP / VerticalStack / ThreeColumn)
Alt + TToggle monocle (full-screen) mode
Alt + MMinimize the focused window
Alt + QClose the focused window
Alt + Shift + RRetile (re-apply the current layout)
Alt + Shift + PPause / resume all Mosaico hotkeys

The full reference card lives at the Cheatsheet. Edit ~/.config/mosaico/keybindings.toml to remap any shortcut.

4. Pick a Theme (optional)

Mosaico ships with three theme families that color the status bar and the focus border. Set the active theme in ~/.config/mosaico/config.toml:

[theme]
name = "rose-pine"   # catppuccin (default), rose-pine, tokyo-night
flavor = "main"

Save and the colors update live, no restart needed. See Theming for the full palette per family.

5. Check the Status

mosaico status

Reports whether the daemon is running and its PID.

6. Run the Doctor

mosaico doctor

Performs a health check on your configuration files, daemon status, and monitor setup. Any issues are reported with colored status tags.

7. Stop the Window Manager

mosaico stop

All windows are restored to their original state before the daemon exits.

Next Steps