Note: This page refers to Razer's mice and keyboards. If you were looking for the laptop, see Razer Blade.

There are currently no official drivers for any Razer peripherals in Linux. However, Michael Buesch has created a tool called razercfg to configure Razer mice under Linux. There also exist scripts to enable macro keys of Razer keyboards.

Installation

You also need to edit your /etc/X11/xorg.conf file to disable the current mouse settings by commenting them out as in the following example, where also some defaults are set as suggested by the author:

Troubleshooting

Razer keyboards

There are currently two Python scripts available to enable the extra M1 - M5 macro keys, that certain Razers have, under Linux:
Note that this does not allow to assign any content to Macro keys, it merely will enable the sending of keycodes. For Razers without M1 -M5 extra keys there is no point using this tool.

Blackwidow Control

Features

confirmed to work with regular BlackWidow, BlackWidow 2013 and BlackWidow Ultimate Stealth 2014

should also work with BlackWidow Ultimate, BlackWidow Ultimate 2013 and BlackWidow 2014

does not work with BlackWidow (Ultimate) 2016 yet

uses Python 3

allows to control the status of the LED

contains a file with udev rule so macro keys will be enabled automatically when the keyboard is plugged in

How to Use

Then use the shortcut utility of your Desktop Enviroment to map the keys, i.e. to actually use the macro keys for something useful. For example, the "KDE global shortcuts" GUI (find it in system settings) can assign macros to a key on any keyboard, not just Razers.

Blackwidow macro scripts

Features

Works with BlackWidow Ultimate and Stealth 2013 (unknown whether it works with other versions or keyboard models)

adding the "021e" ID for Ornata Chroma makes the Game-mode feature (white "G" LED) work on Ornata Chroma as well.