You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Martchus 89aea1b045
Add stalebot config
10 months ago
.github Add stalebot config 10 months ago
.gitignore first commit 8 years ago
LICENSE first commit 8 years ago Add copyright notice 10 months ago Add support for BlackWidow Chroma V2 1 year ago
razer_blackwidow.rules Add support for BlackWidow Chroma V2 1 year ago

BlackWidow control

Python 3 script to enable macro keys of BlackWidow keyboard under GNU/Linux

It just enables the macro keys which can then be configured as hotkeys in your desktop environment. However, it does not enable the ability to record macros and to switch between different configurations like the Windows driver does.

For recording macros under X11 one might use xmacro or xdotool.

Supported devices

The script is known to work with the following BlackWidow editions:

  • regular edition (the ceapest one which has no background light)
  • the regular 2013 edition
  • BlackWidow Ultimate Stealth 2014
  • BlackWidow Ultimate 2012
  • BlackWidow Chroma V2

If you can confirm that those or other devices work or don't work, let me now by editing this file.


  • The script does not work with the 2016 editions (yet).
  • The script has been tested using the firmware update from Razer Synapse 2.0. Hence the script might not work when an older firmware version is used.


  • Pyusb is required to run the script.
  • Use -h for a list of available options.
  • To invoke the script automatically when the keyboard is plugged-in an udev rule can be added (see razer_blackwidow.rules).


The script itself is based on While the original license is unspecified, the author makes it clear that using and modified the code is permitted (and even encouraged):

2020-08-27 Relatives and descendents of this code have been available in various places for many years now, and are probably better maintained. Check your distribution's package manager!

Copyright © 2012 Copyright © 2015-2022 Marius Kittler

All additions and modifications to the original code are licensed under GPL-2-or-later.