Skip to content

equk/blackwidow_macro

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

blackwidow_macro

Razer BlackWidow Macro Keys Enabler

Copyright (C) 2016 B.Walden

This program sends a init packet used by Razer proprietary drivers to initialize the 'Macro' keys on Razer BlackWidow keyboards.

License: MIT (LICENSE file should be included with source)

Dependencies: libusb

Usage

Razer BlackWidow Macro Keys v2.0
Sending Keyboard Macro Init Sequence for [1532:011b]

Sending data:
 00 00 00 00 00 02 00 04
 02 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00
 00 00 00 00 00 00 00 00
 04 00
Transmitted: 90
Arguments:
        -s      send init packet
        -v      show verbose output

Supported Devices

ID Device Name
010D Razer BlackWidow Ultimate
010E Razer BlackWidow
011B Razer BlackWidow 2013
0203 Razer BlackWidow Chroma
0221 Razer BlackWidow Chroma V2
011A Razer BlackWidow Ultimate 2014

If anyone wants me to add any more please open a issue so I can add them in.

Version 2.x

improvements:

  • new libusb handle
  • array of keyboard device IDs
  • new cli feedback
  • support for more keyboard devices

Notes

BlackWidow Keyboards do not have any onboard memory for macros Razer use software for macro functionality in windows.

You can however use xmacro in linux

You can also use xmodmap or your WM to allocate functions to the macro key keycodes.

To find all connected Razer devices you can use: lsusb -d 1532:

Extending

I have added a sample udev rule to udev/99-bwidow.rules which can be placed into /usr/lib/udev/rules.d/99-bwidow.rules

To install this you can do make cpudev

To remove you can do make rmudev

Keycode Reference

M1 = 191
M2 = 192
M3 = 193
M4 = 194
M5 = 195

Related References

Razer Windows Drivers

Device IDs taken from Razer BlackWidow drivers

Razer010D.DeviceDesc     = "Razer BlackWidow Ultimate"
Razer010E.DeviceDesc     = "Razer BlackWidow"
Razer011B.DeviceDesc     = "Razer BlackWidow 2013"

%Razer010D.DeviceDesc%=Razer, HID\Vid_1532&Pid_010D&MI_00
%Razer010E.DeviceDesc%=Razer, HID\Vid_1532&Pid_010E&MI_00
%Razer011B.DeviceDesc%=Razer, HID\Vid_1532&Pid_011B&MI_00

Contact

Website: https://equk.co.uk

Mastodon: @equilibriumuk@hachyderm.io

Bluesky: @equilibriumuk.bsky.social

License

MIT License

About

🐧 enable macro keys on Razer BlackWidow keyboards

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •