[software development] Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Tofloor
poster avatar
Feelup
deepin
11 hours ago
Author

Hey everyone, I'd like to share a little app I wrote called deepin-spectrum. It makes your Deepin taskbar rise and fall in real time with whatever music, video, or game audio is playing — like an equalizer strip stuck right onto the taskbar.

It's a standalone resident process: it reads the PulseAudio / PipeWire monitor mix directly, runs an FFT analysis, and overlays spectrum bars onto the empty input area of the taskbar. No theme changes, no modifications to the dde-shell source code, no new sinks, and no changes to the default audio output. The overlay uses input pass-through, so clicking, right-clicking for context menus, and hovering on the taskbar all work as usual.

Note: It works in both X11 and Wayland (Treeland) sessions.

Current features

  • 30 preset color schemes, organized into 6 categories (Cheerful / Calm / Warm / Melancholy / Serious / Cool) — click a color card and the whole scheme applies at once
  • Rainbow gradients: three layouts — horizontal rainbow, one color per bar, and multi-segment gradients within a bar — with 8 multi-color presets ready to use out of the box
  • Peak sliders that float and fall slowly: the sound kicks the little slider at the top of each bar upward, and after a hover it slowly falls back down. Duration / speed / gravity are all adjustable
  • Changes take effect in about 250 ms without a restart; you can also tweak parameters yourself and save your tuned settings as "My Presets" to recall anytime
  • Chinese and English UI, light/dark taskbar preview, launch at startup (systemd user unit), tray controls, auto-hide when watching fullscreen video
  • Software rendering: CPU usage < 1.5% (single core) during playback, and essentially no refreshing when silent

Screenshots for reference

Several different styles are preset so you can switch them up to match your mood.

截图_选择区域_20261115202846.png

Changes take effect immediately after adjusting the style.

截图_选择区域_20261115202926.png

Of course, there are also various fine-tuning options.

截图_选择区域_20261115202951.png

And some adjustable dynamic effects.

截图_选择区域_20261115203023.png

After installing, remember to start the spectrum from "Run" first.

截图_选择区域_20261115203130.png

And of course, if you don't want it displayed in the taskbar, you can move it above the taskbar instead.

录屏_选择区域_20261115203542.gif

录屏_选择区域_20261115203738.gif

The app has been uploaded to the Deepin App Store

图片.png


Reply Favorite View the author
All Replies
avatar
David_Zeng
deepin
4 hours ago
#1

Good job ;). Nice software

Reply View the author