项目作者: AkhilJalagam

项目描述 :
i3blocks script for managing airpods and airpods pro.
高级语言: Shell
项目地址: git://github.com/AkhilJalagam/i3blocks-airpods.git
创建时间: 2020-07-17T14:29:38Z
项目社区:https://github.com/AkhilJalagam/i3blocks-airpods

开源协议:

下载


i3blocks-airpods 💃🕺

i3blocks script for managing airpods and airpods pro.
i3blocks airpods

Controls

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

Showcase

i3blocks airpods

Dependencies

  1. 1.ofono.service # systemd
  2. 2.ofono-phonesim
  3. sudo add-apt-repository ppa:smoser/bluetooth
  4. sudo apt-get install ofono-phonesim
  5. 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

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

i3blocks.conf

  1. [airpods]
  2. command=/path/to/airpods
  3. label=🎧
  4. 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 👆 👀