This script is intended for the development and testing of socket connection and feature-specific code for AirPods. Successful implementations can later be migrated into the GNOME extension Bluetooth Battery Meter.
It allows socket-level experimentation and debugging in avoiding GNOME Shell restarts or crashes, making it much easier to run and debug.
Note!
This is a rough prototype and may contain bugs.
- Disable any other extension or application that may be accessing AirPods sockets.
- Edit
main.jsand set your Sony budsdevicePath(replaceXXwith the device's MAC address). - Ensure your Sony buds are connected before running the script.
- Execute the script via terminal:
gjs-console -m /path/to/main.js