Skip to main content

Caps Lock → Hyper

Map CAPS_LOCK to Hyper ⌘⌥⌃⇧, and keep as if alone (or map to another key if alone, e.g. toIfAlone('escape') for ).

Copy and edit the code below in the online editor:

export const rules = () => [
rule('Caps Lock → Hyper').manipulators([
map('caps_lock').toHyper().toIfAlone('caps_lock'),
]),
]

Or copy the JSON below and add it to Karabiner-Elements without changes:

{
"description": "Caps Lock → Hyper",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock"
},
"to": [
{
"key_code": "left_command",
"modifiers": [
"option",
"control",
"shift"
]
}
],
"to_if_alone": [
{
"key_code": "caps_lock"
}
]
}
]
}