Code Monkey home page Code Monkey logo

i3blocks-airpods's Introduction

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.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 ๐Ÿ‘† ๐Ÿ‘€

i3blocks-airpods's People

Contributors

akhilj-git avatar akhiljalagam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

laurentfough

i3blocks-airpods's Issues

i3blocks freezes with left and right click

I am using the script for my bluetooth earphones which are not airpods.
Using the middle click works fine and switches the audio profiles succesfully (what I was really only interested in)
However I have noticed that the statuses stop refreshing if I press left or right click on the audio block.
The earphones do not disconnect or connect either.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.