GitPedia

I3blocks airpods

i3blocks script for managing airpods and airpods pro.

From akhiljalagamยทUpdated September 4, 2025ยทView on GitHubยท

**i3blocks airpods** is a i3blocks script for managing airpods and airpods pro. The project is written primarily in Shell, first published in 2020. Key topics include: airpods, airpodspro, i3, i3blocks, i3wm.

<!-- ![Subreddit subscribers](https://img.shields.io/reddit/subreddit-subscribers/i3blocks?style=flat-square) ![Keybase PGP](https://img.shields.io/keybase/pgp/akhiljalagam?style=flat-square) ![Keybase BTC](https://img.shields.io/keybase/btc/akhiljalagam?style=flat-square) -->

i3blocks-airpods ๐Ÿ’ƒ๐Ÿ•บ

i3blocks script for managing airpods and airpods pro.
i3blocks airpods

Controls

<b>left click: </b> connect to airpods
<b>middle click:</b> toggle A2DP(used for music) or HSP/HFP(used for calls)
<b>right click: </b> disconnect airpods

Showcase

i3blocks airpods

Dependencies

   1.ofono.service  # systemd
   2.ofono-phonesim  
       sudo add-apt-repository ppa:smoser/bluetooth  
       sudo apt-get install ofono-phonesim  
   3.git clone https://github.com/rilmodem/ofono.git /opt/ofono  

Tweak the script for first time

replace MAC and card name in the script

AIRPODS_MAC='4C:6B:E8:80:46:84' # it should be somewhere in blueman-manager  
AIRPODS_NAME='bluez_card.4C_6B_E8_80_46_84' # you can find this using 'pactl list cards' command  

i3blocks.conf

[airpods]
command=/path/to/airpods
label=๐ŸŽง 
interval=10

Note

you should first pair your airpods using blueman and trust them to use this script

Discussion

https://www.reddit.com/r/i3wm/comments/hsx3l3/got_airpods_lets_setup_i3blocks_for_it/

Contributions are welcome

Say thanks:

Just letting me know you're enjoying this plugin is a great way to say thanks!

You can do so by staring the GitHub repo.

Troubles?

If you have any kind of trouble with it, just let me now by raising an issue on
the GitHub issue tracker here:

It should be there ๐Ÿ‘† ๐Ÿ‘€

Contributors

Showing top 2 contributors by commit count.

View all contributors on GitHub โ†’

This article is auto-generated from akhiljalagam/i3blocks-airpods via the GitHub API.Last fetched: 6/18/2026