Skip to content

feat(audio): add native Liquid Glass Headphones & Earbuds widget - #47

Open
hrithikramprasath wants to merge 1 commit into
0-ss:mainfrom
hrithikramprasath:feat/headphones-widget
Open

hrithikramprasath wants to merge 1 commit into
0-ss:mainfrom
hrithikramprasath:feat/headphones-widget

Conversation

@hrithikramprasath

Copy link
Copy Markdown

Summary

Adds a native macOS Tahoe Liquid Glass Headphones & Wireless Earbuds widget to the top menu bar (toggleable in Settings → Menu Bar → Top Bar Widgets and controllable via IPC).

Features & Architecture

  1. Native Liquid Glass Bento Popover (hubPop in MacBar.qml)

    • Built on MacShell's native 2-pass Gaussian backdrop capture pipeline (GlassCtx + liquidglass.frag.qsb + ContourGlow + MorphText).
    • Authentic floating Bento geometry matching MacShell's Control Center: individual floating glass tiles, staggered spring entrances, and focus-pull morph transitions without opaque wrapper boxes.
    • Deep environmental glass veiling and precision double edge matching the File menu styling.
  2. Wireless Earbuds & Headphones Stage (assets/mac-earbuds-ctl)

    • Real-Time Battery & Connection Status: Live battery reporting for Left earbud, Right earbud, and charging Case, plus active Bluetooth audio codec.
    • Noise Control Switching: 4-state cycling (ANC · Ambient · Adaptive · Off) with animated dynamic-island acoustic waveform medallion and caustic watercolor glow.
    • 2D Water-Droplet Equalizer Dropdown: Minimalist 6-preset Tahoe segmented control with viscous surface-tension fluid mechanics, supporting both click and continuous pointer drag.
    • 360° Spatial Audio & Low-Latency Gaming Mode: Integrated virtual binaural HRTF filter chain (spatial-sofa.conf via PipeWire pw-loopback) and PipeWire quantum toggles.
    • Hardware Control: Touchpad lock toggle to prevent accidental touches.
    • Broad Hardware Compatibility: Native asynchronous RFCOMM SPP protocol for Samsung Galaxy Buds, generic BlueZ D-Bus A2DP discovery (~3 ms) for all standard Bluetooth headphones (AirPods, Sony, Bose, Sennheiser, Beats, JBL, etc.), and extensible ~/.config/macshell/earbuds.d/*.sh driver hooks.
  3. Discord / Voice Comms Quick Controls (assets/mac-discord-ctl)

    • Micro-capsules for 0 ms microphone mute and call audio deafen directly tracking in-process PipeWire streams with asynchronous client shortcut bridge.
  4. Settings & IPC Support

    • Toggleable in Settings → Menu Bar → Top Bar Widgets (showAudioHub).
    • Full IPC interface: qs -c MacShell ipc call hub toggle | open | close | eq <bool>.

Dependencies & Scope

  • Pure Python 3 standard library for helper scripts (zero external pip packages required).
  • Rebased cleanly onto upstream main (tag 0.4.9) with zero conflicts.
  • Strictly isolated to the headphones / earbuds widget.

- Adds a native macOS Tahoe Liquid Glass popover for wireless earbuds and audio communications
- Real-time battery status for left earbud, right earbud, and charging case
- Noise control switching (ANC, Ambient, Adaptive, Off) and touchpad lock
- Minimalist 2D water-droplet Equalizer preset switcher with viscous fluid physics
- 360 Spatial Audio (PipeWire binaural HRTF) and low-latency gaming mode toggles
- Discord / voice comms microphone mute and call audio deafen capsules
- Async BlueZ D-Bus discovery & Samsung Galaxy Buds RFCOMM SPP protocol via pure Python 3 mac-earbuds-ctl
- Top bar button with dynamic link status jewel and Settings toggle under Top Bar Widgets
- Top-bar IPC control (qs -c MacShell ipc call hub toggle|open|close|eq)
MythosOfs added a commit to MythosOfs/MacShell that referenced this pull request Nov 22, 2026
Bring in Debian 13 support, GIF and WebP widgets, animated album art,
karaoke lyrics, System Monitor, optional Genie minimize, floating window
defaults, uptime, WireGuard, the audio hub, Reminders, Spotlight subtraction,
pinned-only Dock mode, tray collapse, and the unified icon grid.

Keep the fork's existing Spotlight screenshot search and Bluetooth status
reader. Sample Dock icons from the existing Image, fetch Apple Music motion
art from its public album page, and reuse MacLock's existing Spotify helper.
Isolate optional lyrics dependencies in a virtual environment.

Upstream: 0-ss#9, 0-ss#10, 0-ss#11, 0-ss#12, 0-ss#14, 0-ss#19, 0-ss#21, 0-ss#28, 0-ss#45, 0-ss#47,
0-ss#49, 0-ss#50, 0-ss#52, 0-ss#53, 0-ss#54.

Co-authored-by: 4sakenme <thienphutrinh4567@gmail.com>
Co-authored-by: Dexul <lcedu.dev@gmail.com>
Co-authored-by: Doffi4 <206447286+Doffi4@users.noreply.github.com>
Co-authored-by: Hrithik Ram Prasath <220790015+hrithikramprasath@users.noreply.github.com>
Co-authored-by: Marian Barba <134831821+MarianC-programing@users.noreply.github.com>
Co-authored-by: Victor Zwaga <victor.zwaga@gmail.com>
Co-authored-by: freroxx <yikni2829@gmail.com>
Co-authored-by: shuretokki <tri.r.utomo@gmail.com>
Co-authored-by: w4nnnn <irwanfebriansyah112@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants