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

The first start

The first time mochid starts, it writes two files to ~/.config/mochi/:

  • config.toml: which modules run, and their settings.
  • theme.toml: colors, sizes and motion.

Every option is in them, commented, with its default. They turn on the whole shell: the clock, the on-screen display, workspaces, media, notifications, the launcher, the control center, the power page and screenshots. Mochi never overwrites these files.

mochi config path     # where the files are
mochi config check    # check them, without a running daemon
mochi reload          # apply your changes, without a restart
mochi doctor          # check everything Mochi needs around it
mochi profile         # record what Mochi costs for 30 s, as a report to send

mochi doctor checks what Mochi needs around it and says what to install or change: whether mochid runs and the UI is connected, the config, Quickshell’s version, the fonts, which Wayland protocols your compositor offers and what each is for, the portal and its share picker, whether another notification daemon holds the name, and the programs your modules and plugins run, like gpu-screen-recorder or satty. Each line is ✓ fine, ! something works less well, or ✗ broken, and the command fails when one is broken.

Keys

Mochi doesn’t grab keys itself. Bind these in your compositor:

ActionCommand
Open or close the launchermochi ipc launcher toggle
Open or close the control centermochi ipc control-center toggle
Open or close the clock, with the calendar and remindersmochi ipc clock toggle
Play or pause the musicmochi ipc media play-pause
Do not disturbmochi ipc notifications dnd toggle
Lock the screenmochi ipc power lock
Take a screenshotmochi ipc capture screenshot
Start or stop recordingmochi ipc capture record
Close what the island showsmochi dismiss

mochi ipc lists every action of every module, and mochi ipc <module> one module’s.

Escape closes views that take the keyboard: the launcher, the control center, the mixer, the clipboard and the other panels. Notices that let you keep typing, like the volume or a notification, don’t take it, so Escape goes to your app; mochi dismiss on a key like SUPER + Escape closes those, and a right click on the island does too.

In Hyprland’s Lua config:

hl.bind("SUPER + space", hl.dsp.exec_cmd("mochi ipc launcher toggle"))
hl.bind("SUPER + C", hl.dsp.exec_cmd("mochi ipc control-center toggle"))
hl.bind("SUPER + period", hl.dsp.exec_cmd("mochi ipc clock toggle"))
hl.bind("SUPER + SHIFT + N", hl.dsp.exec_cmd("mochi ipc notifications dnd toggle"))
hl.bind("Print", hl.dsp.exec_cmd("mochi ipc capture screenshot"))
hl.bind("ALT + Print", hl.dsp.exec_cmd("mochi ipc capture record"))
-- `locked` keeps media keys working on the lock screen.
hl.bind("XF86AudioPlay", hl.dsp.exec_cmd("mochi ipc media play-pause"), { locked = true })
hl.bind("XF86AudioNext", hl.dsp.exec_cmd("mochi ipc media next"), { locked = true })
hl.bind("XF86AudioPrev", hl.dsp.exec_cmd("mochi ipc media previous"), { locked = true })

In hyprland.conf:

bind = SUPER, space, exec, mochi ipc launcher toggle
bind = SUPER, C, exec, mochi ipc control-center toggle
bind = SUPER, period, exec, mochi ipc clock toggle
bind = , Print, exec, mochi ipc capture screenshot
bindl = , XF86AudioPlay, exec, mochi ipc media play-pause

In Sway:

bindsym $mod+space exec mochi ipc launcher toggle
bindsym $mod+c exec mochi ipc control-center toggle
bindsym $mod+period exec mochi ipc clock toggle
bindsym Print exec mochi ipc capture screenshot
bindsym --locked XF86AudioPlay exec mochi ipc media play-pause

In niri:

binds {
    Mod+Space { spawn "mochi" "ipc" "launcher" "toggle"; }
    Mod+C { spawn "mochi" "ipc" "control-center" "toggle"; }
    Mod+Period { spawn "mochi" "ipc" "clock" "toggle"; }
    Print { spawn "mochi" "ipc" "capture" "screenshot"; }
    XF86AudioPlay allow-when-locked=true { spawn "mochi" "ipc" "media" "play-pause"; }
}

The command line

mochi completions <shell> prints completions for bash, zsh, fish, elvish or PowerShell; the Nix and Arch packages install them for bash, zsh and fish. --json makes mochi status, mochi ipc list, mochi ipc <module> and mochi plugins list print JSON, for scripts:

mochi status --json | jq -r '.modules[]'

Using the island

  • A left click expands what the island shows, or collapses it; clicking the clock opens the control center.
  • A right click closes it.
  • Hovering keeps it from timing out.
  • Clicking a bubble opens what it stands for: the music bubble shows the player, the bell shows missed notifications.

Another notification daemon

If swaync, mako or dunst is running, Mochi waits behind it and takes over notifications when it stops. To switch, stop the other one, for example with systemctl --user disable --now swaync.