Skip to content

Instantly share code, notes, and snippets.

@yuhangch
Created August 23, 2023 01:24
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 yuhangch/3b489b61cd67bb4b05532c464ae74e2c to your computer and use it in GitHub Desktop.
Save yuhangch/3b489b61cd67bb4b05532c464ae74e2c to your computer and use it in GitHub Desktop.
custom-caps.json
{
"title": "Change caps_lock to Esc and Control",
"rules": [
{
"description": "Post Esc if Caps is tapped, Control if held.",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "left_control",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control",
"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