{"id":21534470,"url":"https://github.com/equk/blackwidow_macro","last_synced_at":"2025-04-10T01:42:09.713Z","repository":{"id":149680309,"uuid":"50182986","full_name":"equk/blackwidow_macro","owner":"equk","description":":penguin: enable macro keys on Razer BlackWidow keyboards","archived":false,"fork":false,"pushed_at":"2020-06-07T22:24:48.000Z","size":11,"stargazers_count":12,"open_issues_count":2,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T03:23:40.557Z","etag":null,"topics":["blackwidow","libusb","linux","macro","macros","razer","udev"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/equk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2016-01-22T13:28:31.000Z","updated_at":"2023-08-05T15:18:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"790bfbf6-2391-4037-8b05-1bc3db3d06e6","html_url":"https://github.com/equk/blackwidow_macro","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equk%2Fblackwidow_macro","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equk%2Fblackwidow_macro/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equk%2Fblackwidow_macro/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/equk%2Fblackwidow_macro/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/equk","download_url":"https://codeload.github.com/equk/blackwidow_macro/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248142217,"owners_count":21054605,"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","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":["blackwidow","libusb","linux","macro","macros","razer","udev"],"created_at":"2024-11-24T03:10:52.848Z","updated_at":"2025-04-10T01:42:09.705Z","avatar_url":"https://github.com/equk.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License](http://img.shields.io/:license-mit-blue.svg?style=flat)](http://badges.mit-license.org)\n\n# blackwidow_macro\n\nRazer BlackWidow Macro Keys Enabler\n\nCopyright (C) 2016 B.Walden\n\nThis program sends a init packet used by Razer proprietary drivers to initialize the 'Macro' keys on Razer BlackWidow keyboards.\n\nLicense: MIT (LICENSE file should be included with source)\n\nDependencies: [libusb](http://libusb.info/)\n\n## Usage\n\n    Razer BlackWidow Macro Keys v1.2\n    Razer BlackWidow 2013 Device Found\n    Sending data:\n     00 00 00 00 00 02 00 04\n     02 00 00 00 00 00 00 00\n     00 00 00 00 00 00 00 00\n     00 00 00 00 00 00 00 00\n     00 00 00 00 00 00 00 00\n     00 00 00 00 00 00 00 00\n     00 00 00 00 00 00 00 00\n     00 00 00 00 00 00 00 00\n     00 00 00 00 00 00 00 00\n     00 00 00 00 00 00 00 00\n     00 00 00 00 00 00 00 00\n     04 00\n    Transmitted: 90\n\n## Notes\n\nBlackWidow Keyboards do not have any onboard memory for macros Razer use software for macro functionality in windows.\n\nYou can however use `xmacro` in linux\n\nYou can also use xmodmap or your WM to allocate functions to the macro key keycodes.\n\nTo find all connected Razer devices you can use: `lsusb -d 1532:`\n\n## Extending\n\nI have added a sample udev rule to `udev/99-bwidow.rules` which can be placed into `/usr/lib/udev/rules.d/99-bwidow.rules`\n\nTo install this you can do `make cpudev`\n\nTo remove you can do `make rmudev`\n\n### Keycode Reference\n\n    M1 = 191\n    M2 = 192\n    M3 = 193\n    M4 = 194\n    M5 = 195\n\n### device id's included\n\n    010D = \"Razer BlackWidow Ultimate\"\n    010E = \"Razer BlackWidow\"\n    011B = \"Razer BlackWidow 2013\"\n\nIf anyone wants me to add any more please tell me so I can add them in.\n\n### todo\n\n* ~~extract all known device id's of blackwidow keyboards from the Razer proprietary drivers~~\n* ~~add more blackwidow device id's~~\n\n### related references\n\n* [Wireshark USB Capture Setup](https://wiki.wireshark.org/CaptureSetup/USB)\n* [libusb on github](https://github.com/libusb/libusb)\n* [libusb wiki on github](https://github.com/libusb/libusb/wiki)\n\n### razer windows drivers\n\nDevice IDs taken from Razer BlackWidow drivers\n\n    Razer010D.DeviceDesc     = \"Razer BlackWidow Ultimate\"\n    Razer010E.DeviceDesc     = \"Razer BlackWidow\"\n    Razer011B.DeviceDesc     = \"Razer BlackWidow 2013\"\n\n    %Razer010D.DeviceDesc%=Razer, HID\\Vid_1532\u0026Pid_010D\u0026MI_00\n    %Razer010E.DeviceDesc%=Razer, HID\\Vid_1532\u0026Pid_010E\u0026MI_00\n    %Razer011B.DeviceDesc%=Razer, HID\\Vid_1532\u0026Pid_011B\u0026MI_00","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequk%2Fblackwidow_macro","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fequk%2Fblackwidow_macro","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fequk%2Fblackwidow_macro/lists"}