Skip to content

About

Google Pixel Buds Pro 2 battery, Hearing Wellness, ANC modes, conversation awareness, and controls

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Google Pixel Buds Pro 2 Plugin for Omarchy

A native system integration plugin for Google Pixel Buds Pro 2 on Omarchy / Quickshell.

Pixel Buds Panel Preview

Features

  • Top Bar Integration: High-resolution GPU-rendered (Shape.CurveRenderer) closed Pixel Buds pebble case icon that adapts to the active desktop theme.
  • Battery Telemetry: Real-time Left Pod, Right Pod, and Case battery levels (with 4-hour last-known case caching).
  • Hearing Wellness: Live sound exposure meter (in dB) streamed from the earbuds' hardware dosimeter, 80 dB safe-limit indicator, daily/7-day average & peak dB summary, and Loud Sound Alerts toggle (volume_exposure_notifications).
  • Noise Control: Active Noise Cancellation (ANC), Transparency, Adaptive Audio, and Off switching / cycling (right-click the bar icon to cycle).
  • 5-Band Equalizer & Sound: 5-band EQ sliders (Low Bass, Bass, Mid, Treble, Upper Treble, -6 to +6 dB) with quick presets (Balanced, Heavy Bass, Light Bass, Vocal, Clarity), Left/Right Audio Balance, Volume EQ, and Mono Audio.
  • In-Ear Detection (Auto-Pause / Auto-Resume): Automatically pauses active media playback when an earbud is removed and resumes playback when placed back in the ear.
  • Touch & Hold Controls: Configure Left and Right bud long-press actions (Noise Control vs. Assistant) and customize which Noise Control modes are included in the gesture cycle.
  • Bud Settings: Toggle Conversation Awareness, In-Ear Detection, Multipoint Audio, Touch Gestures, and Auto Firmware Updates.
  • Device Info: View live firmware versions and serial numbers for Left Bud, Right Bud, and Case.
  • Find My Buds: Directional 3 kHz locator chime with automatic MPRIS audio pause/resume.
  • Native Rust Engine: Self-contained Rust daemon speaking Google's Maestro protocol over Bluetooth RFCOMM with zero external CLI dependencies.

Dependencies

  • Omarchy / Quickshell desktop environment
  • Rust toolchain (cargo) to compile the native Bluetooth RFCOMM bridge on first setup
  • BlueZ (bluetooth.service and mpris-proxy.service) for Bluetooth RFCOMM and AVRCP media status
  • PipeWire / PulseAudio (paplay, pactl) for the Find My Buds locator chime

Installation

Install directly with Omarchy's plugin manager:

omarchy plugin add https://github.com/techmandan/pixel-buds.git --enable

Everything is automatic — on first load (and automatically after every omarchy plugin update pixel-buds), the plugin detects if the native Rust bridge needs to be built or updated, compiles it in the background, installs/restarts the user systemd service (pixel-buds.service), and connects automatically with no manual steps required.

Optional Hyprland Media Binding Tip

By default, Hyprland/Omarchy maps XF86AudioPause to playPause (a toggle). So that hardware Bluetooth AVRCP pause signals sent by the earbuds only ever pause and never toggle already-paused media back on, you can optionally add this to ~/.config/hypr/bindings.lua:

hl.unbind("XF86AudioPause")
o.bind("XF86AudioPause", "Pause", "omarchy-shell media pause", { locked = true })

Removal

Stop and remove the user systemd service, then remove the plugin from Omarchy:

systemctl --user disable --now pixel-buds.service
rm -f ~/.config/systemd/user/pixel-buds.service
systemctl --user daemon-reload
omarchy plugin remove pixel-buds

Architecture

  • src/: Native Rust daemon (Maestro RFCOMM + MPRIS media controller) and CLI tool (pixel-buds).
  • Panel.qml: Quickshell popup panel for battery, Hearing Wellness, Noise Control, EQ, balance, touch controls, device info, and Find My Buds.
  • PixelBudsIcon.qml: High-resolution GPU-curved closed Pixel Buds case vector icon conforming to active desktop themes.
  • Service.qml: Reactive interface connecting the Quickshell UI to the Rust bridge.
  • Model.js: Data parsing, state contracts, EQ presets, and helper functions.

License

Released under the MIT License.

About

Google Pixel Buds Pro 2 battery, Hearing Wellness, ANC modes, conversation awareness, and controls

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages