Skip to content
Projects

About

Your AirPods do a lot on a Mac. Pods makes them do it on Linux: battery for each bud and the case, Noise Cancellation, Transparency and Adaptive, Conversation Awareness, ear detection, and the microphone activates instantly and keeps your music playback high quality.

Other Projects

How these counts are measured

361 stars8 Forks +21 in 24h

Measured star growth

in 24h
+21
in 7 days
Collecting history
in 15 days
Collecting history
in 1 month
Collecting history

Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.

README.md

Original

Superwhisper Pods

AirPods on Linux, made by Superwhisper.

Install  ·  What you get  ·  Microphone  ·  Speed  ·  Desktops  ·  Distros

The Pods panel on Omarchy for AirPods Pro 2 while dictating: battery for the left bud, the right bud and the case, the four listening modes with Adaptive selected and its noise slider at 75%, Conversation Awareness on, One-Bud ANC off, and ear detection set to pause when one bud is out
Omarchy
The Pods menu in the GNOME Shell top bar for AirPods Pro 2: the right bud at 18% drawn in red in the bar and in the menu, the listening modes with the Adaptive noise slider, Conversation Awareness, One-Bud ANC and ear detection
GNOME Shell
The Pods widget on KDE Plasma 6 for AirPods Pro 2: three battery meters with the right bud charging, radio buttons for the listening modes, the Adaptive noise slider, two switches and an ear detection drop-down
KDE Plasma

Your AirPods do a lot on a Mac. Pods makes them do it on Linux: battery for each bud and the case, Noise Cancellation, Transparency and Adaptive, Conversation Awareness, ear detection, and the microphone activates instantly and keeps your music playback high quality.

curl -fsSL https://github.com/superultrainc/pods/releases/latest/download/install.sh | sh

One command, on x86-64 or ARM64. The installer covers Arch, Debian, Ubuntu, Fedora, openSUSE and the distros built on them (which releases). NixOS has a flake. Pods runs as a hardened systemd user service, not as root. On a host that stops systemd from setting up mounts in an unprivileged user namespace, as Ubuntu 24.04 does by default, the service still starts but without its filesystem sandboxing.

What you get

  • Battery for each bud and the case. Charging state too. With one BlueZ setting you also see the levels while your paired AirPods sit in their case nearby, not connected to anything.
  • Every listening mode. Off, Transparency, Adaptive and Noise Cancellation, with the Adaptive noise slider.
  • Conversation Awareness and One-Bud ANC. One switch each.
  • Ear detection. Take a bud out and Pods pauses your MPRIS media players. Put it back and it resumes the ones it paused. Choose whether one bud, both buds or nothing pauses them.
  • Auto connect. Connect your AirPods once with Pods running. After that, putting a bud in your ear reconnects them. Auto connect needs the same BlueZ setting as the case battery and an adapter that can monitor advertisements.
  • Notifications on Omarchy. A low battery warning when a bud or the case falls to 10 percent or below off charge, and a notice when the AirPods drop while you wear them. pods set notifications false turns them off.
  • A real microphone. A 64 kHz PipeWire source that does not use the headset profile. More below.
  • A command line and a D-Bus API. pods status, pods watch and pods set noise anc, so you can script all of it. More below.

Pods knows every AirPods, AirPods Pro and AirPods Max model, from the first AirPods to AirPods 5, AirPods Pro 3 and AirPods Max 2. Each panel shows only what your model can do: AirPods Max get one headphones battery, and a model without noise control gets no listening modes.

The microphone

Bluetooth headsets on Linux make you choose. You get good playback, or you switch to the headset profile to get a microphone and your music turns into a phone call.

Pods never asks for the headset profile. It reads the microphone over the AirPods' own protocol and hands PipeWire a 64 kHz source, so recording does not pull playback off A2DP.

  • It is an ordinary input. Anything that records through PipeWire or its PulseAudio layer can pick it.
  • Pods asks the audio server to make it the default input when the source appears.
  • The stream starts when an app opens it and keeps running for a minute after the last app leaves, so two recordings close together share one start. With a bud in, playback can keep the stream running past that minute.
  • pods set microphone off removes it. always keeps it running while you wear a bud.

Superwhisper Linux

Pods comes from Superwhisper, and dictation is what the microphone was tuned for. When Superwhisper Linux is the only app recording and the AirPods' dictation service is ready, Pods gives it the dictation stream. Otherwise it gets the general stream. On Omarchy the panel reads DICTATING while you dictate, as in the first screenshot.

Superwhisper Linux finds the Pods source by its pods_input. node name prefix and its pods.device.id node property, which holds the Bluetooth card's id. The D-Bus API covers the dictation state and how to find the source.

How fast it is

Each number below is a bound a test holds Pods to, not a best case. The first four are tests CI runs against simulated AirPods. The last two are gates in the hardware run, which a person starts by hand against real AirPods, so CI does not check them.

  • Adaptive noise: within 100 ms. That is how fast the daemon answers a request for a new level.
  • A change made on the AirPods: within a second. Switch mode from a stem and pods watch prints the new state.
  • Battery over the air: within a second. When the AirPods advertise new levels, the status has them.
  • Joining the running general stream: first sound in under 100 ms. Pods buffers 75 ms of audio for dictation and 85 ms for the general stream to ride out radio jitter.
  • Start and reconnect, on real AirPods. After a service start, the name, the model and a battery reading are back within 2 seconds in ten restarts out of ten. After a reconnect they are back within half a second of the daemon starting to open its link, in at least four tries out of five. Once pods do connect replies, they are back within 15 seconds, five out of five.
  • Idle means idle. Over ten idle minutes with AirPods connected, the daemon wakes 12 times a minute or fewer on average. Over ten more with nothing connected, twice a minute or fewer.

The Bluetooth connection itself gets no tight number. That part is BlueZ and your adapter.

Your desktop

One daemon, podsd.service, talks to the AirPods. Every desktop below reads from it, so they all show the same levels and the same mode. The installer sets up the one you run.

The Pods panel on Omarchy for AirPods Max 2: one headphones battery at 88% and charging, four listening modes with Noise Cancellation selected, Conversation Awareness off, and ear detection set to pause when removed
AirPods Max 2 on Omarchy

The Pods panel on Omarchy for AirPods (3rd generation): the left bud at 95% and in the ear, the right bud at 18% with a red meter, the case at 72%, and ear detection set to pause when one bud is out
A bud running low
GNOME Quick Settings with an AirPods tile reading Adaptive · 18%, and its menu open: battery meters, the listening modes, the Adaptive noise slider, Conversation Awareness, One-Bud ANC and ear detection
GNOME Quick Settings
The Pods tray menu opened from Waybar: AirPods Pro 2 (USB-C), left 65%, right 82% and charging, case 91%, radio items for the listening modes, the Adaptive noise submenu, check boxes for Conversation Awareness and One-Bud ANC, and the ear detection submenu
Waybar tray

Omarchy

The installer registers the superwhisper.pods bar widget. Click the mark in the bar to open the panel. The mark turns your theme's urgent colour when a bud or the headphones are at 20 percent or below and not charging. It hides when the AirPods are disconnected and no battery reading is coming in.

Keys and settings

Press j/k or the arrow keys to move, Enter or Space to activate, and Esc to close. Enter on Ear detection opens its choices, and e steps through them.

The bar mark's tooltip names the device, the levels and the mode. To keep the mark visible while disconnected, or to show the lowest battery percentage beside it:

omarchy bar set superwhisper.pods hideWhenDisconnected false --json
omarchy bar set superwhisper.pods showBatteryPercent true --json

GNOME Shell

Works on GNOME Shell 46 through 51. You get a menu in the top bar and an AirPods tile in Quick Settings. Press the tile to switch between Off and your last listening mode. On a model without Off, such as AirPods Pro 3, pressing it opens the menu instead. The tile's arrow opens the full controls.

The installer links the [email protected] extension and tries to enable it. Log out and back in once so GNOME Shell finds it. If it is still off, open GNOME Extensions or run gnome-extensions enable [email protected]. With Home Manager, see NixOS and Home Manager.

KDE Plasma

Works on Plasma 6. Add Pods to a panel from Add Widgets, or show it in the System Tray settings. On a horizontal panel the widget shows your lowest battery percentage, or the headphones' on AirPods Max. In the system tray and on a vertical panel it shows the icon only. A click opens the rest. Middle click cycles the listening mode. The scroll wheel steps Adaptive noise by 5% while Adaptive is on.

The installer links the com.superwhisper.pods widget. Restart podsd.service after you place it, so the daemon drops its own tray icon in favour of the widget. With Home Manager, see NixOS and Home Manager.

Waybar and other trays

If your Waybar config has the tray module, there is nothing else to set up. The daemon has a tray icon built in, so Pods appears in the Waybar tray on Hyprland and Sway, and in any other panel that runs a StatusNotifierItem watcher. It shows up when AirPods are connected or reporting battery nearby. The tooltip has the device and its battery. The menu has the levels, plus the listening and ear controls while the AirPods are connected. Middle click cycles the listening mode, and scrolling steps Adaptive noise by 5% while Adaptive is on.

To show the battery as text in Waybar instead of the icon, follow the Waybar recipe.

When the tray icon hides

The daemon drops the tray icon when a richer surface is there: when it finds the Omarchy widget, when GNOME Shell reports the GNOME extension enabled, or when the Plasma widget sits on a panel or in the system tray. If GNOME Shell does not answer when the daemon starts, an installed extension still hides it.

Set PODS_TRAY=0 or PODS_TRAY=1 in the daemon's environment to turn the tray icon off or force it on.

Install

Run this from a terminal as your regular user.

curl -fsSL https://github.com/superultrainc/pods/releases/latest/download/install.sh | sh

The installer picks the x86-64 or ARM64 bundle, verifies its SHA-256 checksum, installs the PipeWire and BlueZ packages if they are missing, and starts the podsd.service systemd user unit. Pass sh -s -- --version 1.0.0 to choose a release, or sh -s -- --version 1.0.0 --dry-run to see its download URLs.

To update a home install, rerun the first command above without --version. The web bundle uses the latest GitHub release and keeps your pairing keys and settings. If the home install already has different files for that release version, the installer refuses to replace them. Follow the home Uninstall steps without --purge before retrying.

On Omarchy, once your package list includes pods, that command runs omarchy pkg add pods in place of the bundle steps above, whether or not a home install is present. After a switch from a home install, the Uninstall section below shows how to remove the home files it leaves behind. The package can trail GitHub releases. Update a package install with omarchy update.

Your distro

The installer is written for the releases below. It finds pacman, apt-get, dnf or zypper and installs three packages with it (or with omarchy pkg add on Omarchy): PipeWire, its PulseAudio layer and BlueZ (pipewire pipewire-pulse bluez on Arch and Debian, pipewire pipewire-pulseaudio bluez on Fedora and openSUSE).

  • Arch: Omarchy, Arch, CachyOS
  • Debian: Ubuntu 24.04 or later, Linux Mint 22 or later, Debian 13 or later
  • Fedora: Fedora 40 or later, RHEL, AlmaLinux, Rocky Linux and CentOS Stream 10
  • openSUSE: Tumbleweed
  • NixOS: use the flake, which has a Home Manager module. See NixOS and Home Manager.

CI runs the installer's test suite in fresh containers. Arch, Ubuntu 24.04, Fedora and openSUSE Tumbleweed run on every change to the installer, before it merges. Debian 13, AlmaLinux 10, and Ubuntu 24.04 and Fedora on ARM64 run on every push to main and once a week. The other releases in the list are not run in CI. Each shares its package manager and packages with one that is, so it is expected to work.

The release binaries are built for glibc 2.39 and newer. That is why Ubuntu 24.04, Linux Mint 22 and Fedora 40 are the oldest releases on the list.

Manual or source installation

Download the archive for your architecture and its matching .sha256 from GitHub Releases, then run the bundled installer from your terminal. For x86-64 and version 1.0.0:

sha256sum --check pods-linux-x86_64-1.0.0.tar.zst.sha256 &&
  tar --zstd -xf pods-linux-x86_64-1.0.0.tar.zst &&
  cd pods-linux-x86_64-1.0.0 &&
  ./install.sh

To check the release signature as well, download the matching .minisig file from GitHub Releases. Get pods-release.pub from the matching source tag (public key for v1.0.0). Save both beside the archive. Run this before the commands above and continue only if verification succeeds.

minisign -Vm pods-linux-x86_64-1.0.0.tar.zst -p pods-release.pub

From a checkout, run ./setup --from-source to build with the pinned Rust toolchain, or ./setup --binary /path/to/pods to use a matching build.

Uninstall

The web installer leaves no uninstaller on disk. Download a release archive and its matching .sha256 file. Verify the checksum and unpack the archive as shown above, then run ./uninstall.sh from the extracted folder. From a checkout, run ./setup --uninstall.

Pairing keys, state and settings are kept by default. Add --purge to delete the state directory and the settings folder, ~/.config/pods by default. The settings folder is kept when it is a link or outside your home. A state directory that is a link, a file or outside your home stops the whole purge before anything is removed. A pacman-installed pods package that owns /usr/bin/pods stops the purge too. So does a linked user unit that another tool manages, and a running podsd.service whose unit the installer did not write.

On Omarchy, when Pods came from the package, run omarchy pkg drop pods. If the daemon is still running, stop it with systemctl --user stop podsd.service. Follow the recipe removal steps to remove the per-user links. If you switched from a home install, including a manual or source install, follow the home Uninstall steps above without --purge to remove the remaining home install and keep your data. To delete pairing keys, state and settings too, run ./uninstall.sh --purge from an unpacked release archive after the package removal steps.

Requirements

  • x86-64 or ARM64 Linux with a systemd user session, BlueZ, and PipeWire with PulseAudio compatibility. The installer adds those packages, except on NixOS, where your system configuration provides them.
  • The web installer itself needs curl, tar, zstd, coreutils, bash, diffutils, findutils and util-linux, and prints the command to install any that are missing. It also uses grep.

BlueZ experimental features

Set Experimental = true under [General] in /etc/bluetooth/main.conf, then restart the Bluetooth service or reboot. This turns on BlueZ's advertisement monitor, which is how Pods sees the case battery, the lid and the ear state while the AirPods are away, and how auto connect knows you put a bud in. It needs a Bluetooth adapter that can monitor advertisements, and AirPods that have connected once while Pods was running. The installer prints a reminder when it is off.

CLI and D-Bus

pods status
pods watch
pods set noise anc
pods-ctl status
busctl --user introspect com.superwhisper.Pods /com/superwhisper/Pods com.superwhisper.Pods1

pods status prints the whole state as one line of JSON, and pods watch prints it again on every change. That is enough for a status bar module or a shell script. pods-ctl is the older client name, which the installer keeps as a link to pods so scripts written for it still work.

The session bus name is com.superwhisper.Pods, the object path is /com/superwhisper/Pods, and the interface is com.superwhisper.Pods1. Errors start with com.superwhisper.Pods1.Error.. See the D-Bus API and the local socket protocol for integration details.

Contributing

Read CONTRIBUTING.md before you open a pull request, and report security issues as SECURITY.md describes.

Credits and license

Pods credits Kavish Devar and LibrePods for the AirPods protocol work. Pods source is released under the MIT License.

The three product outlines in AirPodsIcon.qml, packaging/icons/pods-{buds,pro,max}-symbolic.svg, and their rasterized tray bitmaps in crates/daemon/src/daemon/tray/{buds,pro,max}.argb come from Apple's AirPods page. Apple, AirPods and AirPods Max are Apple Inc. trademarks. Apple does not sponsor or endorse Pods. The MIT license excludes Apple's outlines.

Explore related projects

Loading…