Go to file
Martchus 89aea1b045 Add stalebot config 2022-04-12 01:09:16 +02:00
.github Add stalebot config 2022-04-12 01:09:16 +02:00
.gitignore first commit 2015-07-31 22:16:11 +02:00
LICENSE first commit 2015-07-31 22:16:11 +02:00
README.md Add copyright notice 2022-04-05 20:42:49 +02:00
blackwidowcontrol.py Add support for BlackWidow Chroma V2 2021-11-30 14:04:58 +01:00
razer_blackwidow.rules Add support for BlackWidow Chroma V2 2021-11-30 14:04:58 +01:00


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 https://finch.am/projects/blackwidow. 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 finch.am Copyright © 2015-2022 Marius Kittler

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