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

Media

Shows what’s playing in any player that speaks MPRIS: Spotify, browsers, VLC, mpv with mpv-mpris, and most others. A new track takes the island with the cover, the progress and the controls; after a few seconds the music becomes a bubble with the cover and a progress ring. Click the bubble to bring the player back, and click or drag the progress line to seek. Once you click the player open, Escape or a click outside sends it back to its bubble.

Players that report a volume of their own, like Spotify, get a volume slider under the controls on the island, and next to the controls on the control center card when it has room. That volume is the player’s, apart from the app’s volume in the mixer: it’s the one the player’s own slider shows. Players without one, or that take no commands, get no slider. Double-click it to put it back to 100%.

When several players are open, the one that last started playing wins, and a playing one always beats a paused one. Arrows next to the player’s name, on the island and on the control center card, switch to another player that has a track. The one you pick stays shown until it stops or closes, even when another starts a new track; then the rule above applies again.

The progress line waves while a track plays and lies flat when it pauses. wavy = false keeps it flat, and the theme’s waves = false in [motion] keeps every wave in Mochi flat, whatever the modules say: see Motion. line_color = "accent" draws the line in the accent instead of the text’s color. On the control center card and the desktop card the line only shows the progress; card_seeks = true makes it seek there too, where the player can.

# Media: what's playing in any MPRIS player. A new track shows on the island,
# then the music becomes a bubble next to it.
[module.media]
# How long a new track shows the full player, in milliseconds.
# expand_ms = 4000
# Then how long the compact view stays before the music becomes a bubble.
# island_ms = 3000
# How long a paused player's bubble stays.
# paused_ms = 3000
# Players never shown.
# ignore = []
# The progress line waves while a track plays. Off keeps it flat. The theme's
# waves, under Motion, can keep every wave flat whatever this says.
# wavy = true
# The progress line's color: "foreground", like the text, or "accent".
# line_color = "foreground"
# The now playing card's line seeks on a click or a drag, in the control
# center and on the desktop, as the island's player does.
# card_seeks = false
ActionWhat it does
play-pause, play, pauseControls playback
next, previousChanges track
seek <seconds>Jumps to a position in the track
volume <level>Sets the shown player’s own volume: 40 sets it, +5 and -5 move it, up to 100
next-player, previous-playerShows another player, until it stops
player <name>Shows the player with this name, like spotify or firefox, until it stops

It offers the control center a Now Playing card, and the desktop a widget in three looks: the same card; artwork, a tall card with the cover big and the track, the progress and the controls under it; and cover, only the cover, without a card, with a button to play or pause in its corner.