Fancy Functions is a Spectacles Lens which communicates with a companion macOS app to provide a suite of utility functions. The Lens can trigger actions in the macOS app, which performs tasks like opening apps, managing volume levels, and more. This allows for a seamless integration of custom functionality between the Spectacles Lens and the user's desktop environment.
This was designed to work on a 14inch MacBook Pro, so you may need to offset the buttons if you are using a different device.
- Easy to use Mac OS App
- Spectacles Lens with bluetooth support.
-
Clone the repo
-
macOS App (if you want to build the sample):
cd macOSApp
./build.sh- Give Permissions to the macOS App:
On first launch the app will ask for permissions to control your computer. This is required for the functionality of the app. If there are issues when re building, remove the permission fully and add again.

If you do decide to change the bluetooth UUIDs within the macOS app, ensure that you do the same in the exposed fields within the BluetoothHandler script in the lens. The UUIDs must match for the lens and the macOS app to communicate properly.

BluetoothHandler.ts - Handles the connecting to the mac through Bluetooth, receiving messages, and sending messages back to the mac when actions are triggered in the lens.
Flow.ts - Handles the overall flow of the experience, including the setup of the lens and the spawning of the buttons.
