Andbal23/dynamic-music-pill
关于
A dynamic, elegant, and highly customizable music widget for GNOME Shell. It brings a pill-shaped media controller with a live waveform visualizer directly to your Dash or Panel.
设计与媒体实测星标增长
- 24小时
- +1
- 7天
- +3
- 15天
- +5
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Dynamic Music Pill
Adaptive media controller, real-time Cava visualizer, and synchronized karaoke lyrics for GNOME Shell.
×
Works smoothest with Simple Taskbar — dynamic pill width transitions glide cleanly inside Simple Taskbar's Dock and Taskbar modes without layout jumps. |
Live Preview
Real GNOME 51 capture featuring Dash to Dock, Blur my Shell refraction, live Cava spectrum bars, word-by-word karaoke lyrics, and quick subpages — download crisp MP4.
Visual Modes & Placement
Dynamic Music Pill fits naturally anywhere in GNOME Shell — inside your Dock (Dash to Dock, Ubuntu Dock, Simple Taskbar) or in any Top Panel zone (Left, Center, Right) with independent width, height, margin, and offset profiles.
- Adaptive Color Engine & Dynamic Contrast — Automatically extracts the dominant palette from the playing track's cover art and adapts text and icons cleanly on both bright and dark covers.
- Native Blur Integration (
Blur my Shell v76+) — Real-time Dual Kawase and Liquid refraction behind both the main pill and expanded pop-up, with optional album-art color tinting and pipeline following. - Four Visualizer Engines — Choose Off, Wave, Beat, or Real-Time (powered by
cava) with independently configurable bar counts, thickness, height, and margins. - Compact & Always-On Modes — Collapse down to a minimal cover + visualizer pill, or retain your last played track on startup with one-click quick launch.
- Spinning Vinyl & Multi-Player Selector — Switch between square album art or a smoothly spinning vinyl disc, and jump between active MPRIS players right from the top of the pop-up.
Expanded Pop-up & Custom Control Buttons
Beyond Play/Pause, Next, Previous, Seek Bar, Shuffle, and Repeat, the pop-up includes two customizable quick-action button slots that open sleek frosted subpages directly inside the pop-up — no switching windows required.
- Recently Played History — Browse recent tracks with cover art, dominant color tinting, timestamps, and one-click copy.
- System & App Volume Mixer — Adjust master volume and per-player audio streams via PipeWire/PulseAudio, plus quick mute.
- Audio Output Switcher — Switch seamlessly between speakers, DACs, and Bluetooth headphones in place.
- Sleep Timer — Built-in shell countdown presets (
5m–90m) that keep running even when the screen locks. - Playback Speed Control — Adjust playback rate (
0.5×–2.0×) for compatible MPRIS players (e.g. podcasts or browsers). - Quick Seek Step — Optional fast skip backward/forward action slot can also be assigned to either custom button.
Synchronized Karaoke Lyrics
- Word-by-Word Karaoke Highlighting — Displays live synced lyrics in both the Expanded Pop-up and directly inline on the Dock or Top Panel Pill with smooth timing and configurable fade transitions.
- Multi-Source & Preferred Script — Automatic lyrics lookup (LRCLib, Apple Music karaoke, and MPRIS metadata) with auto, original script (CJK/Hangul), or romanized/Latin preference.
- Local Sidecar & Manual Import — Automatically detects
.lrc,.ttml, and.txtfiles placed alongside local audio, or lets you pick a custom folder and import lyrics manually for any song.
Controls, Multi-Player & System Integration
- Five Mouse & Hover Bindings — Independently bind Left Click, Double Click, Middle Click, Right Click, and Hover (with
0–3000 msdelay) to Play/Pause, Skip, Open/Close Player App, Open Pop-up Menu, Switch Player, or Open Settings. - HiDPI Scroll Gestures — Scroll on the pill to change Track, System/App Volume, or Switch Player with touchpad delta accumulation and independent scroll direction/animation inversion.
- Tablet & Touch Controls — Optional on-pill Skip and Play/Pause buttons for touchscreens and 2-in-1s.
- Game Mode & Performance — Automatically pauses visualizers and CSS animations whenever a fullscreen app is focused.
- Player Filtering & App ID Mapping — Whitelist or blacklist MPRIS players (plus live browser detection) and map custom
.desktopApp IDs cleanly. - Import / Export & Factory Reset — Save or restore your complete extension configuration to a
.jsonfile at any time.
Installation
From GNOME Extensions Store (Recommended)
Manual Installation from Source
# GNOME 50+ (default main branch):
git clone https://github.com/Andbal23/dynamic-music-pill.git
# Or for GNOME 45–49:
git clone -b gnome45-49 https://github.com/Andbal23/dynamic-music-pill.git
cd dynamic-music-pill
mkdir -p ~/.local/share/gnome-shell/extensions/dynamic-music-pill@andbal
cp -r * ~/.local/share/gnome-shell/extensions/dynamic-music-pill@andbal/
glib-compile-schemas ~/.local/share/gnome-shell/extensions/dynamic-music-pill@andbal/schemas/
Log out and log back in (GNOME 50+ is Wayland-only; on GNOME 51 the Alt+F2 reload command was removed), then enable the extension via Extensions / Extension Manager or:
gnome-extensions enable dynamic-music-pill@andbal
NixOS Installation
Install via Nix Flake (CLI or declarative configuration)
Quick Install
# GNOME 50+ (main branch):
nix profile add github:Andbal23/dynamic-music-pill
# GNOME 45–49:
nix profile add github:Andbal23/dynamic-music-pill/gnome45-49
Declarative (flake.nix)
Add the input:
# GNOME 50+ (main branch):
inputs.dynamic-music-pill.url = "github:Andbal23/dynamic-music-pill";
# Or for GNOME 45–49:
# inputs.dynamic-music-pill.url = "github:Andbal23/dynamic-music-pill/gnome45-49";
Then add the package to configuration.nix or Home Manager:
environment.systemPackages = [
inputs.dynamic-music-pill.packages.${pkgs.system}.default
];
Real-Time Cava Visualizer (Optional)
The Real-Time visualizer mode (visualizer-style = 3) uses the cava CLI package:
| Distribution | Command |
|---|---|
| Ubuntu / Debian | sudo apt install cava |
| Fedora | sudo dnf install cava |
| Arch Linux | sudo pacman -S cava |
Configuration (Preferences)
The Libadwaita preferences window is organized into 7 searchable tabs:
Tab 1 — Main Pill (General display, positioning & per-mode sizing)

| Setting | Description |
|---|---|
| Always ON | Retains the last known track and keeps the pill visible after the media player is closed. |
| Show Album Art | Displays the cover art thumbnail inside the pill. |
| Fallback Album Art | Sets a custom PNG or JPEG image when the current track provides no cover art. |
| Show Artist / Inline Artist | Displays the artist line or switches to "Title • Artist" when narrow. |
| Compact Mode (Hide Text) | Hides title and artist text for a minimal cover + visualizer pill. |
| Scrolling Text | Smoothly scrolls long titles/artists (with optional hover-only & freeze-on-pause). |
| Container Target | Hosts the pill in Dock, Panel Left, Panel Center, or Panel Right. |
| Multi-Monitor Docks | Choose between Main Dock Only, All Docks, or Secondary Docks Only. |
| Dynamic Width / Alignment / Offsets | Auto-fits width up to cap, sets alignment/manual index, and tunes X/Y offsets & dimensions separately for Dock and Panel modes. |
Tab 2 — Pop-up Menu (Vinyl art, custom buttons, player selector & pop-up visualizer)

| Setting | Description |
|---|---|
| Close on Mouse Leave | Auto-hides the pop-up when the cursor moves outside it. |
| Show Album Title / HH:MM:SS | Optionally append album name after artist and display hours for long tracks. |
| Enable Shadow & Inheritance | Toggle pop-up shadow and independently inherit transparency, border radius, and custom colors. |
| Show / Rotate / Square Vinyl | Display circular rotating vinyl disc (adjustable speed) or static rounded square cover. |
| Shuffle & Repeat Controls | Toggle shuffle and repeat loop buttons inside the pop-up bar. |
| Custom Control Buttons (Slot 1 & 2) | Bind two extra pop-up buttons to Volume, Audio Output, Sleep Timer, Playback Speed, Recently Played, or Seek Step. |
| Player Selector | Displays active MPRIS players cleanly at the top of the pop-up (optional Auto selector toggle). |
| Pop-up Visualizer | Independent bar count (2–64), width (1–20 px), height, and option to hide the main pill visualizer while open. |
Tab 3 — Controls (Mouse bindings, hover delay, touchpad/wheel scroll & tablet overlay)

| Setting | Description |
|---|---|
| Mouse & Hover Actions | Map Left Click, Double Click, Middle Click, Right Click, and Hover (0–3000 ms delay) independently. |
| Scroll Controls | Enable scrolling on the pill to Change Track, Change Volume, or Switch Player. |
| Volume Scroll Target | Choose System Master Volume or Active Player Application volume. |
| Invert Animation / Direction | Independently invert the scroll jump animation and scroll wheel/touchpad direction. |
| Tablet Mode Controls | Overlay Skip Only, Play/Pause Only, or All Controls directly on the pill. |
Tab 4 — Lyrics (Synced karaoke display, script preference & local `.lrc`/`.ttml` import)

| Setting | Description |
|---|---|
| Lyrics Display & Fade | Toggle live synchronized lyrics and configure line transition duration (50–2000 ms). |
| Word-Level Karaoke | Enable per-word karaoke highlight progression directly on the pill and pop-up. |
| Preferred Script | Choose Auto, Prefer Original Script (CJK/Hangul), or Prefer Latin / Romanized. |
| Local Lyrics Folder | Point to a folder of .lrc, .ttml, or .txt files for automatic offline lookup. |
| Manual Lyrics Import | Attach a local .lrc, .ttml, or .txt file to the currently playing track or any custom title/artist. |
Tab 5 — Style & Layout (Audio visualizer, Blur my Shell pipelines, colors & transparency)

| Setting | Description |
|---|---|
| Visualizer Style & Dimensions | Off, Wave, Beat, or Real-Time (cava), plus bar count, bar width, height, and margin. |
Dynamic Blur (Blur my Shell) |
Enable blur behind Pill and Pop-up, tint blur with album art, or follow your Blur my Shell Dual Kawase / Liquid pipelines. |
| Colors & Light Mode | Light Mode, Sync GNOME Accent Color, or custom background, text, and visualizer color overrides. |
| Per-Layer Transparency & Outline | Global opacity slider plus independent transparency switches for art, text, and visualizer, outline border, and drop shadow. |
Tab 6 — System & Reset (Game Mode, player filtering, App ID mapping & JSON backup)

| Setting | Description |
|---|---|
| Hide Default GNOME Player | Removes the duplicate built-in media controls from GNOME Quick Settings. |
| Game Mode & Slow Player Fix | Auto-pauses animations in fullscreen apps, and optional compatibility delay for slower MPRIS players. |
| Player Filter & App ID Mapping | Live D-Bus player detection to Whitelist/Blacklist players or pair custom MPRIS names to .desktop App IDs. |
| Export / Import / Reset | Serialize full preferences to .json, restore backups, or reset to defaults. |
Tab 7 — About (Version changelog, Weblate status & project links)

Contributors
Dynamic Music Pill is built by András László (@Andbal23) together with community code contributors and translators worldwide!
Translations (Hosted Weblate)
- Arabic: Issam Khalaf
- Chinese (Simplified): LuceLoong, O2bmm
- Dutch: Heimen Stoffels, László András
- French: Ocin4ever, elmagio, lebao3105
- German: Christian Lauinger
- Hindi: Dhananjay Porwal
- Hungarian: László András
- Indonesian: Arif Budiman, Joy, RafifSakti
- Italian: albanobattistella, talpinum, gio
- Japanese: penne
- Portuguese: ssantos
- Portuguese (Brazil): Guilherme Odai, @silveirajhess-cyber
- Russian: Daniel Freak, slytheduck
- Spanish: @champinondev-lab, Elsie, yael
- Swedish: Andreas Rheindorf, László András
- Tamil: @tamilneram247
- Turkish: Yiğithan Karabel, Buğra Çağlar
- Ukrainian: Олег Попов, László András
- Vietnamese: Huynh Tuan Dung, lebao3105
Support & More Extensions
Check out more GNOME extensions: Extension Profiles · Timed Do Not Disturb
Star History
License
This project is licensed under the GPL-3.0 License.
Made with ❤️ for the GNOME community.
探索相关项目
加载中…

