Explore the source / dotfiles

Inside dotfiles.

Shell, terminal, backup, and the configuration that joins them. Browse the current public files here, or visit the dotfiles repository on GitHub.

dotfiles / main

home/.config/karabiner/assets/complex_modifications/caps_lock.json

View on GitHub
{
  "title": "Caps Lock",
  "rules": [
    {
      "description": "Caps Lock to Escape if pressed and Command+Control+Option+Shift if held down",
      "manipulators": [
        {
          "from": {
            "key_code": "caps_lock",
            "modifiers": {
              "optional": ["any"]
            }
          },
          "to": [
            {
              "key_code": "left_shift",
              "modifiers": ["left_command", "left_control", "left_option"]
            }
          ],
          "to_if_alone": {
            "key_code": "escape"
          },
          "conditions": [
            {
              "type": "frontmost_application_unless",
              "bundle_identifiers": ["com.utmapp.UTM"]
            }
          ],
          "type": "basic"
        }
      ]
    },

    {
      "description": "Esc to Caps_Lock",
      "manipulators": [
        {
          "from": {
            "key_code": "escape",
            "modifiers": {
              "optional": ["any"]
            }
          },
          "to": {
            "key_code": "caps_lock"
          },
          "type": "basic"
        }
      ]
    }
  ]
}