Skip to content

Instantly share code, notes, and snippets.

@ybbond
Created July 26, 2021 06:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ybbond/ac2053542cc3148d83e57ce02976bf99 to your computer and use it in GitHub Desktop.
Save ybbond/ac2053542cc3148d83e57ce02976bf99 to your computer and use it in GitHub Desktop.
Complex modification for Karabiner Elements. Lazy means: Only send modifier Hyper Keys when other key pressed together
{
"title": "CapsLock to Escape or Hyper",
"rules": [
{
"description": "CapsLock to Escape or Hyper",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "right_shift",
"modifiers": [
"right_command",
"right_control",
"right_option"
],
"lazy": true
}
],
"to_if_alone": [
{
"key_code": "escape"
}
]
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment