[software development] Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Technology Exchange 51 views · 1 replies ·
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.
Changes take effect immediately after adjusting the style.
Of course, there are also various fine-tuning options.
And some adjustable dynamic effects.
After installing, remember to start the spectrum from "Run" first.
And of course, if you don't want it displayed in the taskbar, you can move it above the taskbar instead.
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.
Current features
Screenshots for reference
Several different styles are preset so you can switch them up to match your mood.
Changes take effect immediately after adjusting the style.
Of course, there are also various fine-tuning options.
And some adjustable dynamic effects.
After installing, remember to start the spectrum from "Run" first.
And of course, if you don't want it displayed in the taskbar, you can move it above the taskbar instead.
The app has been uploaded to the Deepin App Store