Ghost Assembly QuickMusic

GNOME Shell extension

QuickMusic

What is playing, in Quick Settings and the top bar.

Shows the current track from any MPRIS player — Spotify (including the Flatpak), browsers, Rhythmbox, VLC and the rest — with play/pause, previous, next and a button to bring the player to the front.

  • GNOME Shell 50
  • Any MPRIS player
  • GPL-3.0-or-later

Install Source on GitHub

01

Overview

QuickMusic adds one tile to Quick Settings and, while something plays or is paused, one item to the top bar. It reads the standard MPRIS interface players already publish on the session bus, so there is nothing else to install.

Quick Settings tile

Title and artist; click to play or pause. The arrow opens cover art, album, previous / play-pause / next, “Open ‹player›” and a player picker.

Top bar item

“Artist – Title” while something is playing or paused, hidden otherwise. Left-click plays and pauses; right-click opens the same controls.

Follows the active player

Whichever started playing most recently, and the last one used once nothing is. Pin one from the picker to stay on it.

Any MPRIS player

Spotify (including the Flatpak), Firefox, Chromium, Rhythmbox, VLC and most others. Nothing extra to install.

02

Install

Requires GNOME Shell 50. Requires an MPRIS-compatible media player on your session bus.

From a release

Download the latest release ZIP and install it for your user. xh is a download tool; you can also download the ZIP from GitHub in a browser. Installing compiles the settings schema.

Shell
xh --download GET https://github.com/Ghost-Assembly/quickmusic/releases/latest/download/quickmusic@napalm255.github.io.shell-extension.zip
gnome-extensions install --force quickmusic@napalm255.github.io.shell-extension.zip

Log out and back in so GNOME discovers the extension, then enable it:

Shell
gnome-extensions enable quickmusic@napalm255.github.io

From a clone

Install mise and activate it in your shell. Clone the repository, install its pinned tools, and build and install the same ZIP used for releases:

Shell
git clone https://github.com/Ghost-Assembly/quickmusic.git
cd quickmusic
mise install
mise exec -- just setup
mise exec -- just install

Log out and back in, then run just enable. Run just prefs to open preferences. After updating a loaded extension, start a new session to load its new code; opening preferences does not reload GNOME Shell.

03

Uninstall

Disable and uninstall the extension for your user. These commands preserve saved settings and other user data.

Shell
gnome-extensions disable quickmusic@napalm255.github.io
gnome-extensions uninstall quickmusic@napalm255.github.io

From a clone, just uninstall performs the same steps. Disabling with just disable leaves the extension installed.

04

Players

QuickMusic speaks MPRIS, the D-Bus interface desktop media players publish. With several running, the tile shows the first that applies:

  1. The pinned player, if it is running.
  2. The playing player that started most recently.
  3. The last player shown, so pausing does not jump elsewhere.
  4. The first by name.

A pin is stored without any instance suffix — chromium, not chromium.instance2 — so it survives the player restarting. A pinned player that is not running stays in the picker, marked “(not running)”, so the pin can be seen and undone.

just mpris-check
$ just mpris-check
  chromium (Chrome) Stopped
    (no track)
    can:   (nothing)
* spotify (Spotify) Playing
    Foo Fighters – My Hero
    album: The Colour And The Shape
    can:   canPlay canPause canGoPrevious canGoNext canRaise

05

Preferences

Open them from the Extensions app, or with just prefs from a clone.

Setting Default Note
Show in the top bar On Hidden while nothing is playing or paused, either way.
Top bar label width 40 characters 10 to 120. Longer text is cut with an ellipsis.
Pinned player None Set from the Quick Settings picker; “Forget” clears it.

06

Keyboard

The top bar item works without a mouse once it has focus.

Input Does
Left-click Play or pause
Right-click Open the controls
Enter or Space Play or pause
Menu or Shift+F10 Open the controls

A screen reader hears the whole track and what activating the item would do — “Pause Foo Fighters – My Hero” — even when the visible label is cut short.

07

Architecture

extension.js is deliberately thin: it builds the MPRIS watcher and the panel on enable, and tears both down on disable. Every decision lives in one pure module; the files around it only move data between it and the bus or the Shell, so the suite can test the decisions on plain Node.

settings.jsSchema keys and their wording, shared by panel.js and prefs.js and checked against the gschema.

Players are untrusted. Text is set as plain text, flattened to one line and capped; cover art loads only from https:// or file://. See the security policy.

08

Testing

just test runs the JavaScript suite with Vitest, the shared tooling tests, and any project-specific offline suites. just coverage reports runtime JavaScript and Python tooling coverage, including untested files. Test stubs and generated reports are not runtime source.

just test-docs runs Playwright and axe in Chromium and Firefox: dark and light accessibility checks, keyboard navigation, mobile layout, reduced motion, links, metadata, local assets, and no page JavaScript. Automated accessibility checks still require human review of reading and focus order.

just test-live checks the package and runs isolated GNOME lifecycle checks. It is a separate local check, not proof of compatibility from a hosted runner. Verify each declared GNOME version and complete the project's manual checks before releasing.

Project checks

The isolated Shell check uses a fake MPRIS player on a private bus. Run just mpris-check against your real session bus and verify discovery, playback controls, and player exit with the players you use.

09

Packaging

Shell
just build
just pack-check

The output is quickmusic@napalm255.github.io.shell-extension.zip at the repository root, with metadata.json at the archive root. Python's standard library packages the explicit runtimeFiles allowlist in quick-project.json, using stable file order and timestamps.

just pack-check compares both filenames and file contents with GNOME's official packer and validates shipped icons. Docs, tests, dependencies, credentials, downloaded binaries, and development artifacts stay outside the ZIP. Update the runtime allowlist when adding a runtime file.

10

Releasing

Run just ci, just test-live, and the project manual checklist. Set metadata.json version-name and package.json version to the same new version. The GNOME Extensions website assigns the numeric metadata.json version during submission. Update the npm lockfile, regenerate the docs, and commit the reviewed changes to main through a passing pull request.

Create and push a v-prefixed tag for that version. The release workflow verifies the version, main ancestry, and successful required checks for the tagged commit, then attaches its tested ZIP to a GitHub release. It does not upload to extensions.gnome.org; that submission and its review remain manual.

11

Development

mise.toml pins runtime and CLI versions; justfile owns commands; npm owns development dependencies and the lockfile. GNOME libraries come from the host. On image-based Fedora, use the host's available tools or a toolbox/distrobox for missing system packages; do not layer packages onto the OS.

Shell
just setup        # install pinned tools, dependencies, and browsers
just fmt          # format source and configuration
just lint         # verify template, generated docs, source, and schemas
just test         # JavaScript, Python, and project offline tests
just coverage     # report JavaScript and Python coverage without source exclusions
just test-docs    # Chromium and Firefox documentation checks
just security     # dependencies, secrets, and workflow checks
just build        # build the runtime-only extension ZIP
just pack-check   # compare files and contents with GNOME's packer
just ci           # complete local verification and packaging
just test-live    # isolated GNOME lifecycle and project integration checks
just docs         # serve the static site at localhost:8000
just template-check  # verify the pinned canonical template
just template-status # report a newer approved template revision

GitHub requires local verification, security analysis, and completed Sonar analysis. The shared Sonar policy requires zero security, reliability, and maintainability issues and zero duplicated lines. PR checks cover changed code; main checks cover the entire project. Missing configuration fails instead of silently skipping analysis. Pages publishes the tested docs only after the required checks pass on main.

Common tooling and these instructions are generated from a pinned canonical template. Change that source and synchronize its approved revision; do not edit generated sections or locally bless drift. Extension-specific behavior belongs in project configuration and project.just.