Skip to content

Instantly share code, notes, and snippets.

@dfendr
dfendr / custom-capslock.json
Last active March 8, 2023 14:41
Vim Keyboard configurations to map Caps as Esc when tapped, ctrl when held. macOS uses custom-capslock.json with Karabiner Elements, and Linux uses keyboard.conf with keyd.
{
"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",