Ask questionshs.razer - Add support for Razer devices

I've discussed this before in other issues (#2447, #2876), but something I'd love to tackle sooner rather than later is add support for the Razer Tartarus V2 to Hammerspoon, offering a similar extension to hs.streamdeck.



Useful Code:



  • (Linux Only)
  • (Works on macOS)
  • (Windows Only)

Answer questions latenitefilms

Unfortunately that's above my skillset - but I'm hoping @asmagill might be able to investigate this at some point. I'm HOPING it's possible, based on some of the digging above, but I'm not really sure.

In the meantime, you can use the hidutil Terminal command to remap keyboard keys per device. For example, I'm currently remapping all the Razer Tartarus V2 key to "dummy keys" - which mean they do nothing, then I'm using IOKit to detect the key presses, and then trigger a Lua callback. It's a bit of a hack job, but it works, and doesn't require any privilege escalation or drivers (i.e. Karabiner-Elements).

Chris Hocking latenitefilms LateNite Films Australia Filmmaker (and occasional coder) @ LateNite Films
Github User Rank List