Skip to content

Instantly share code, notes, and snippets.

View r-moiseev's full-sized avatar

Roman Moiseev r-moiseev

View GitHub Profile
@r-moiseev
r-moiseev / razer-bwu13-macro.py
Last active July 29, 2021 17:10 — forked from MatejLach/razer-bwu13-macro.py
Razer BlackWidow keyboard - enable macro keys on Linux - updated for the 2013 Ultimate version. Fixed "Could not select configuration endpoint." error (see original discussion)
#!/usr/bin/env python2
# blackwidow_enable.py
#
# Enables the M1-5 and FN keys to send scancodes on the Razer BlackWidow
# and BlackWidow Ultimate keyboards.
#
# You can use 'xev' and 'xbindkeys' to assign actions to the macro keys.
#
# Requires the PyUSB library.