{"id":16151361,"url":"https://github.com/sdushantha/macbook-keyboard-visualizer","last_synced_at":"2025-08-31T22:44:09.504Z","repository":{"id":94758155,"uuid":"176701762","full_name":"sdushantha/macbook-keyboard-visualizer","owner":"sdushantha","description":"🔆 Audio visualizer using the MacBook keyboard lights","archived":false,"fork":false,"pushed_at":"2019-03-22T12:57:59.000Z","size":6,"stargazers_count":32,"open_issues_count":0,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-03T06:37:25.306Z","etag":null,"topics":["audio","datascience","hack","keyboard","linux","macbook","music","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sdushantha.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-20T09:42:35.000Z","updated_at":"2024-11-02T09:39:54.000Z","dependencies_parsed_at":null,"dependency_job_id":"c733936c-d5ba-4a84-af37-82bdfab7902e","html_url":"https://github.com/sdushantha/macbook-keyboard-visualizer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sdushantha/macbook-keyboard-visualizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdushantha%2Fmacbook-keyboard-visualizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdushantha%2Fmacbook-keyboard-visualizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdushantha%2Fmacbook-keyboard-visualizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdushantha%2Fmacbook-keyboard-visualizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sdushantha","download_url":"https://codeload.github.com/sdushantha/macbook-keyboard-visualizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sdushantha%2Fmacbook-keyboard-visualizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273051871,"owners_count":25037078,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-31T02:00:09.071Z","response_time":79,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["audio","datascience","hack","keyboard","linux","macbook","music","python"],"created_at":"2024-10-10T00:56:19.602Z","updated_at":"2025-08-31T22:44:09.483Z","avatar_url":"https://github.com/sdushantha.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eMacBook Keyboard Visualizer\u003c/h1\u003e\n\n[![](https://user-images.githubusercontent.com/27065646/54805885-a0425900-4c78-11e9-8934-8c9b0ea719ba.png)](https://youtu.be/esSRsTjA4s0)\n\nThis project was heavily inspired by [@pirate's repo](https://github.com/pirate/mac-keyboard-brightness).\n\nThis 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!**\n\n\n## Dependencies\n**Python dependencies**\n\n```numpy```\n\n```pyaudio```\n\n**Other**\n\n```kbdlight``` *(Available on the [AUR](https://aur.archlinux.org/packages/kbdlight/))*\n\n## Usage\nJust run the python script and let the magic happen ✨\n```console\n$ python3 mbkv.py\n```\n\n## TODO\nI 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)\n\n## Research sources\n- https://www.swharden.com/wp/2016-07-19-realtime-audio-visualization-in-python\n- https://github.com/pirate/mac-keyboard-brightness\n- https://askubuntu.com/questions/26248/how-to-get-keyboard-light-keys-working-on-macbook\n- https://github.com/WhyNotHugo/kbdlight\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdushantha%2Fmacbook-keyboard-visualizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsdushantha%2Fmacbook-keyboard-visualizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsdushantha%2Fmacbook-keyboard-visualizer/lists"}