AnkiWeb
- Rating
- 0 (π 0 Β· π 0)
- Updated
- 2026-09-21
- Anki versions
- 2.1.66~
- Description language
- en
AnkiWeb addon 1466024936
Pauses currently playing music after eight seconds of inactivity during review, then resumes only the players it paused once you answer or leave.
Open on AnkiWeb GitHub Ask about alternatives
active
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.1 | 2.1.66+ | 2026-09-21 |
Loadingβ¦
Earn screen time by answering flashcards, then spend it on playing media, which auto-pauses when time runs out.
Plays Anki media via mpv with configurable window geometry, subtitles, start/end/length segments, and Advanced Answer Sounds compatibility.
Tracks Anki review velocity and accuracy, providing pacing timers, countdown lights, metronome feedback, and macOS Apple Music/Spotify controls in dock or floating widget modes.
Combines a local-folder focus music player, advanced Pomodoro timer with auto-pause/resume, and calendar history with daily goals.
Docks persistent PDF and music panels beside the reviewer, jumping to the slide matching each card's page-numbered image.
Offers a tactical Anki pacing dashboard with dock or floating widgets, interval and Pomodoro timing, velocity and accuracy metrics, music and metronome controls, and resizing.
An Anki add-on that pauses your music while you are away from a card, and starts it again when you come back.
If you stop interacting with the card being shown, whatever is currently playing gets paused. When you grade the card, exactly those players start again β nothing else, and nothing that was not already playing.
| What happens | What the add-on does |
|---|---|
| Question shown | Starts the idle timer |
| Answer revealed | Restarts the timer, and stays paused if it paused |
| Timer runs out | Pauses everything currently playing, and remembers it |
| Card graded | Resumes only what it paused |
| You leave the reviewer | Resumes what it paused |
Revealing the answer keeps the music paused on purpose β you are still on the card. Only moving on brings it back.
Three rules it never breaks:
Pause and Play, never the PlayPause toggle your
keyboard's media key sends. A toggle fired from a timer eventually does the
opposite of what you wanted.Eight seconds, out of the box. Change idle_seconds in the add-on config to
taste.
Setting it to 0 follows the deck's Maximum answer seconds (Deck options
β Timers) instead, which is Anki's own idea of how long an answer should take
β 60 seconds unless you changed it, and different per deck if you set it that
way. A fixed number is usually better: if you raised the deck setting to stop
Anki capping your recorded answer times, the idle timeout would otherwise
inherit that long value.
Linux, and either playerctl or gdbus on your PATH. gdbus is part of
GLib, so it is almost certainly already installed; playerctl is preferred
when present. Any player speaking MPRIS works β Spotify, VLC, Firefox,
Chromium, and most others do.
On macOS and Windows the add-on loads and does nothing.
Your card audio is unaffected: Anki runs mpv with its own config directory,
which stops mpv-mpris loading, so Anki's player never appears on the bus.
From AnkiWeb: not published yet.
From a release file: Tools β Add-ons β Install from file, and pick the
.ankiaddon.
Tools β Add-ons β Idle Media Pause β Config. Every setting is documented in
the panel beside it; see src/idle_media_pause/config.md.
./dev-install.sh # symlink into ~/.local/share/Anki2/addons21
./build.sh # produce dist/idle_media_pause.ankiaddon
pytest tests/ # the MPRIS layer, no Anki needed
There is a flake, so nix develop puts Anki, playerctl, GLib, zip and
pytest on your PATH and none of the above needs anything else installed.
Without it, build.sh still needs zip.
nix develop # the shell the three commands above expect
nix build # the .ankiaddon, in result/share/anki/addons
nix flake check # the test suite
Run Anki from a terminal to see the add-on's output, and drop
idle_seconds below the shipped 8 while testing β waiting out the timer on
every case gets old fast.
The code splits three ways:
mpris.py β talking to media players. No Anki imports, which is what makes
it testable without a GUI. All parsing lives here.controller.py β the timer and the record of what was paused.__init__.py β hook wiring, and nothing else.One bug only appears outside Nix and other distro packages: Anki's official
Linux bundle sets LD_LIBRARY_PATH to its own Qt and GLib, and a helper that
inherits it loads the wrong libraries and fails with symbol errors.
mpris.build_env() strips it, the same way Anki does before launching mpv. If
you change how subprocesses are spawned, test that change against an official
Anki build, because a Nix or distro Anki will not reveal the breakage.
MIT
It's vibe coded.