Skip to content

Instantly share code, notes, and snippets.

@lewangdev
Last active March 14, 2023 15:28
Show Gist options
  • Save lewangdev/871fde5c1e2ebc3d57a5f22c10973802 to your computer and use it in GitHub Desktop.
Save lewangdev/871fde5c1e2ebc3d57a5f22c10973802 to your computer and use it in GitHub Desktop.
Change caps_lock to command+control+option+shift.(Post left_control+spacebar if press alone)

Import to Karabiner-Elements

Change caps_lock to command+control+option+shift.(Post left_control+spacebar if press alone)

Click to Import

{
"title": "CAPS LOCK held_down to command+control+option+shift and press alone quickly to left_control+spacebar",
"author": "Le Wang (https://github.com/lewangdev)",
"rules": [
{
"description": "Change caps_lock to command+control+option+shift.(Post left_control+spacebar if press alone)",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": ["any"]
}
},
"to_if_alone": [
{
"key_code": "spacebar",
"modifiers": ["left_control"]
}
],
"to_if_held_down": [
{
"key_code": "left_shift",
"modifiers": ["left_command", "left_control", "left_option"]
}
],
"type": "basic"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment