profile
viewpoint

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.

Hardware:

  • https://www.razer.com/gaming-keypads/Razer-Tartarus-V2/RZ07-02270100-R3U1

Useful Code:

  • https://github.com/1kc/librazermacos

Related:

  • https://github.com/1kc/razer-macos
  • https://github.com/FruityRazer/FruityKit
  • https://github.com/kprinssu/osx-razer-blade
  • https://github.com/openrazer/openrazer (Linux Only)
  • https://github.com/z3ntu/razer_test (Works on macOS)
  • https://github.com/CalcProgrammer1/openrazer-win32 (Windows Only)
Hammerspoon/hammerspoon

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).

useful!
source:https://uonfu.com/
answerer
Chris Hocking latenitefilms LateNite Films Australia https://latenitefilms.com Filmmaker (and occasional coder) @ LateNite Films
Github User Rank List