Skip to content

Instantly share code, notes, and snippets.

@JosephKu
Last active October 17, 2017 18:21
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 JosephKu/a050059f9211a4164521d7da397eb67b to your computer and use it in GitHub Desktop.
Save JosephKu/a050059f9211a4164521d7da397eb67b to your computer and use it in GitHub Desktop.
KE-complex_modifications
{
"title": "Change caps_lock key",
"rules": [
{
"description": "Post caps_lock if caps_lock is pressed alone, left_ctrl otherwise.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "caps_lock"
}
]
}
]
}
]
}
@JosephKu
Copy link
Author

JosephKu commented Oct 17, 2017

$ open karabiner://karabiner/assets/complex_modifications/import?url=https://gist.githubusercontent.com/JosephKu/a050059f9211a4164521d7da397eb67b/raw/caps_lock.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment