This commit is contained in:
Harivansh Rathi 2026-02-18 12:53:08 -05:00
parent 85c031b34d
commit d8b54c8b00
4 changed files with 325 additions and 279 deletions

View file

@ -6,6 +6,7 @@
"permissions": {
"defaultMode": "default"
},
"model": "sonnet",
"hooks": {
"PreToolUse": [
{
@ -68,5 +69,6 @@
"CONTEXT7_API_KEY": "${CONTEXT7_API_KEY}"
}
}
}
},
"effortLevel": "medium"
}

View file

@ -1,5 +1,6 @@
theme=Gruvbox Material Dark
font-family = "Berkeley Mono"
font-codepoint-map= "U+f101-U+f25c=nonicons"
background-opacity = 1
# background-blur = macos-glass-regular

View file

@ -1,279 +1,322 @@
{
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "Caps Lock + 6 = Open Telegram",
"manipulators": [
{
"from": {
"key_code": "6",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "shell_command": "open -a 'Telegram'" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 5 = Open Riptide",
"manipulators": [
{
"from": {
"key_code": "5",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "shell_command": "open -a 'Riptide-dev'" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock to Control (held) / Escape (tapped)",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": { "optional": ["any"] }
},
"to": [{ "key_code": "left_control" }],
"to_if_alone": [{ "key_code": "escape" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 1 = Open Dia",
"manipulators": [
{
"from": {
"key_code": "1",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "shell_command": "open -a 'Dia'" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 2 = Open Ghostty",
"manipulators": [
{
"from": {
"key_code": "2",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "shell_command": "open -a 'Ghostty'" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 3 = Open Messages",
"manipulators": [
{
"from": {
"key_code": "3",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "shell_command": "open -a 'Messages'" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 4 = Open Signal",
"manipulators": [
{
"from": {
"key_code": "4",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "shell_command": "open -a 'Signal'" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + H = Left Arrow",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "key_code": "left_arrow" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + J = Scroll Down",
"manipulators": [
{
"from": {
"key_code": "j",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "mouse_key": { "vertical_wheel": 80 } }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + K = Scroll Up",
"manipulators": [
{
"from": {
"key_code": "k",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "mouse_key": { "vertical_wheel": -80 } }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + L = Right Arrow",
"manipulators": [
{
"from": {
"key_code": "l",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "key_code": "right_arrow" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + U = Page Up",
"manipulators": [
{
"from": {
"key_code": "u",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "key_code": "page_up" }],
"type": "basic"
}
]
},
{
"description": "Caps Lock + D = Page Down",
"manipulators": [
{
"from": {
"key_code": "d",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [{ "key_code": "page_down" }],
"type": "basic"
}
]
},
{
"description": "Right Command = Option+W (tmux prefix)",
"manipulators": [
{
"from": {
"key_code": "right_command",
"modifiers": { "optional": ["any"] }
},
"to": [
{
"key_code": "w",
"modifiers": ["left_option"]
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + g = Bottom, Caps Lock + gg = Top (vim-style)",
"manipulators": [
{
"conditions": [
{
"name": "g_pressed",
"type": "variable_if",
"value": 1
}
],
"from": {
"key_code": "g",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [
{
"key_code": "up_arrow",
"modifiers": ["command"]
},
{
"set_variable": {
"name": "g_pressed",
"value": 0
}
}
],
"type": "basic"
},
{
"conditions": [
{
"name": "g_pressed",
"type": "variable_if",
"value": 0
}
],
"from": {
"key_code": "g",
"modifiers": { "mandatory": ["left_control"] }
},
"to": [
{
"set_variable": {
"name": "g_pressed",
"value": 1
}
}
],
"to_delayed_action": {
"to_if_canceled": [
{
"set_variable": {
"name": "g_pressed",
"value": 0
}
}
],
"to_if_invoked": [
{
"key_code": "down_arrow",
"modifiers": ["command"]
},
{
"set_variable": {
"name": "g_pressed",
"value": 0
}
}
]
},
"type": "basic"
}
]
"profiles": [
{
"complex_modifications": {
"rules": [
{
"description": "Caps Lock + 6 = Open Telegram",
"manipulators": [
{
"from": {
"key_code": "6",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"shell_command": "open -a 'Telegram'"
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 5 = Open Riptide",
"manipulators": [
{
"from": {
"key_code": "5",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"shell_command": "open -a 'Riptide-dev'"
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock to Control (held) / Escape (tapped)",
"manipulators": [
{
"from": {
"key_code": "caps_lock",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "left_control"
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 1 = Open Dia",
"manipulators": [
{
"from": {
"key_code": "1",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"shell_command": "open -a 'Dia'"
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 2 = Open Ghostty",
"manipulators": [
{
"from": {
"key_code": "2",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"shell_command": "open -a 'Ghostty'"
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 3 = Open Messages",
"manipulators": [
{
"from": {
"key_code": "3",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"shell_command": "open -a 'Messages'"
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + 4 = Open Signal",
"manipulators": [
{
"from": {
"key_code": "4",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"shell_command": "open -a 'Signal'"
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + H = Left Arrow",
"manipulators": [
{
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + J = Scroll Down",
"manipulators": [
{
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"mouse_key": {
"vertical_wheel": 80
}
]
},
"name": "Default profile",
"selected": true,
"virtual_hid_keyboard": {
"country_code": 0,
"keyboard_type_v2": "ansi"
}
}
]
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + K = Scroll Up",
"manipulators": [
{
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"mouse_key": {
"vertical_wheel": -80
}
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + L = Right Arrow",
"manipulators": [
{
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + U = Page Up",
"manipulators": [
{
"from": {
"key_code": "u",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "page_up"
}
],
"type": "basic"
}
]
},
{
"description": "Caps Lock + D = Page Down",
"manipulators": [
{
"from": {
"key_code": "d",
"modifiers": {
"mandatory": [
"left_control"
]
}
},
"to": [
{
"key_code": "page_down"
}
],
"type": "basic"
}
]
},
{
"description": "Right Command = Option+W (tmux prefix)",
"manipulators": [
{
"from": {
"key_code": "right_command",
"modifiers": {
"optional": [
"any"
]
}
},
"to": [
{
"key_code": "w",
"modifiers": [
"left_option"
]
}
],
"type": "basic"
}
]
}
]
},
"name": "Default profile",
"selected": true,
"virtual_hid_keyboard": {
"country_code": 0,
"keyboard_type_v2": "ansi"
}
}
]
}

@ -1 +1 @@
Subproject commit e7e0a25ab4dd559977235d452481a9b62560a56a
Subproject commit d9a93f41a3224b752a5f4d72791d2f642cc03fb2