https://github.com/sdushantha/macbook-keyboard-visualizer
🔆 Audio visualizer using the MacBook keyboard lights
https://github.com/sdushantha/macbook-keyboard-visualizer
audio datascience hack keyboard linux macbook music python
Last synced: 10 months ago
JSON representation
🔆 Audio visualizer using the MacBook keyboard lights
- Host: GitHub
- URL: https://github.com/sdushantha/macbook-keyboard-visualizer
- Owner: sdushantha
- Created: 2019-03-20T09:42:35.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-22T12:57:59.000Z (about 7 years ago)
- Last Synced: 2025-08-03T06:37:25.306Z (11 months ago)
- Topics: audio, datascience, hack, keyboard, linux, macbook, music, python
- Language: Python
- Homepage:
- Size: 5.86 KB
- Stars: 32
- Watchers: 2
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
MacBook Keyboard Visualizer
[](https://youtu.be/esSRsTjA4s0)
This project was heavily inspired by [@pirate's repo](https://github.com/pirate/mac-keyboard-brightness).
This script has only been tested on Manjaro on the MacBook Air, but I am pretty sure it will work on other Linux distros running on MacBooks. **This does not work on MacOS!**
## Dependencies
**Python dependencies**
```numpy```
```pyaudio```
**Other**
```kbdlight``` *(Available on the [AUR](https://aur.archlinux.org/packages/kbdlight/))*
## Usage
Just run the python script and let the magic happen ✨
```console
$ python3 mbkv.py
```
## TODO
I need to make the script more *sensitive*? At the moment, it only has three levels so, sometimes the lights are at maximum for [a long time at the same brightness](https://youtu.be/esSRsTjA4s0?t=41)
## Research sources
- https://www.swharden.com/wp/2016-07-19-realtime-audio-visualization-in-python
- https://github.com/pirate/mac-keyboard-brightness
- https://askubuntu.com/questions/26248/how-to-get-keyboard-light-keys-working-on-macbook
- https://github.com/WhyNotHugo/kbdlight