pqrs-org / Karabiner-Elements

Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later.
https://pqrs.org/osx/karabiner/
The Unlicense
18.72k stars 836 forks source link

How to register own key / key code #1880

Closed matnowak closed 5 years ago

matnowak commented 5 years ago

Hello!

I'm struggling with some problem. I want to create own key code and name it pupa (i.e. 'key_code': 'pupa' and set it instead of capslock), and use pupa as kinda HYPER one. I've seen solutions like "set hyper as all right modification keys", but I just want to have clear/new one for my experiments. I was trying to find it somewhere on the Internet, but I didn't saw anything like that.

Is it somehow possible in Karabiner?

ea2809 commented 5 years ago

Have you thought using variables to fake your needs ('key code')? Like a hyper...

This is an example: https://pqrs.org/osx/karabiner/json.html#typical-complex_modifications-examples-change-right-shift-x2-to-mission-control

Another example (SpaceFN): https://pqrs.org/osx/karabiner/complex_modifications/json/spacefn.json

I hope it helps...

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.