Code Monkey home page Code Monkey logo

raycast-airpods-connector's Introduction

Raycaast AirPods Connector

Raycast Airpods Connector

This Raycast script command helps you to quickly connect to your AirPods using a minmal wrapper around the BluetoothConnector utillity.

⚠️ Installation and Required Setup ⚠️

  1. Install the BluetoothConnector utility using Homebrew:

    brew install bluetoothconnector

    Make sure to have brew installed. This will install the latest version of BluetoothConnector.

  2. Clone this repository.

    git clone https://github.com/mikeoertli/raycast-airpods-connector.git

    It is recommended to have HOMEBREW_PREFIX defined, for M1 Macs this will be /opt/homebrew/. It should be defined as:

    export HOMEBREW_PREFIX=$(brew --prefix)
  3. Create a configuration file (<raycast-airpods-connector clone dir>/airpods-mac.conf) within the cloned directory (git ignores this file).

    • This config file should contain only the MAC address of your AirPods.

    • This config file is used to export an enviornment variable with the following, so ensure there is nothing else in it, including newlines or other content.

    • The MAC can use either no separator or a "-" separator, but BluetoothConnector does NOT work with a colon (:)-separated string. In other words, these are fine:

      >cat airpods-mac.conf
      aabbccddeeff
      
      >cat airpods-mac.conf
      aa-bb-cc-dd-ee-ff
  4. Install into Raycast by adding this directory as a script directory in Raycast.

    Add script directory

Misc Notes

Unlike the my tweak to the original AirPods Connector for Alfred, this doesn't let you select your AirPods via the GUI, that may be something that gets added someday, but it isn't a high priority.

Make sure to install the latest version of BluetoothConnector:

brew update && brew upgrade bluetoothconnector

PRs welcome!

Acknowledgments

This borrows from the Afred variant, which in turn borrows from others.

raycast-airpods-connector's People

Contributors

mikeoertli avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

raycast-airpods-connector's Issues

Seems that it's impossible to get it work, there're few problems

Problems:

  1. There's no MAC address for Airpods, or I just don't know where to find it. I entered Serial number.
  2. After entering serial number and running the script it shows - Airpods connected, but they don't appear in menu bar as they would if I manually connect them through bluetooth menu, and seems that they're not connected - they're paired, but they're not switched from my iPhone.

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.