i3blocks script for managing airpods and airpods pro.
left click: connect to airpods
middle click: toggle A2DP(used for music) or HSP/HFP(used for calls)
right click: disconnect airpods
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
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
[airpods]
command=/path/to/airpods
label=🎧
interval=10
you should first pair your airpods using blueman and trust them to use this script
https://www.reddit.com/r/i3wm/comments/hsx3l3/got_airpods_lets_setup_i3blocks_for_it/
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.
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 👆 👀