replace kitty with wezterm

This commit is contained in:
2024-12-26 14:28:13 -05:00
parent ed3fdeac57
commit 43b476f4ef
+197 -391
View File
@@ -1,7 +1,5 @@
{
"global": {
"show_in_menu_bar": false
},
"global": { "show_in_menu_bar": false },
"profiles": [
{
"complex_modifications": {
@@ -21,11 +19,7 @@
"modifiers": ["left_command", "left_control", "left_option"]
}
],
"to_if_alone": [
{
"key_code": "escape"
}
],
"to_if_alone": [{ "key_code": "escape" }],
"type": "basic"
}
]
@@ -34,14 +28,8 @@
"description": "left_command -> cmd+c if pressed alone",
"manipulators": [
{
"from": {
"key_code": "left_command"
},
"to": [
{
"key_code": "left_command"
}
],
"from": { "key_code": "left_command" },
"to": [{ "key_code": "left_command" }],
"to_if_alone": [
{
"key_code": "c",
@@ -56,14 +44,8 @@
"description": "left_option -> cmd+v if pressed alone",
"manipulators": [
{
"from": {
"key_code": "left_option"
},
"to": [
{
"key_code": "left_option"
}
],
"from": { "key_code": "left_option" },
"to": [{ "key_code": "left_option" }],
"to_if_alone": [
{
"key_code": "v",
@@ -78,19 +60,31 @@
"description": "Hyper Key sublayer \"a\"",
"manipulators": [
{
"conditions": [
{
"name": "hyper_sublayer_r",
"type": "variable_if",
"value": 0
},
{
"name": "hyper_sublayer_w",
"type": "variable_if",
"value": 0
}
],
"description": "Toggle Hyper sublayer a",
"type": "basic",
"from": {
"key_code": "a",
"modifiers": {
"mandatory": [
"left_command",
"left_control",
"left_shift",
"left_option"
]
}
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
},
"to": [
{
"set_variable": {
"name": "hyper_sublayer_a",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
@@ -99,202 +93,135 @@
}
}
],
"to": [
"type": "basic"
},
{
"set_variable": {
"name": "hyper_sublayer_a",
"value": 1
}
}
],
"conditions": [
{
"name": "hyper_sublayer_a",
"type": "variable_if",
"name": "hyper_sublayer_r",
"value": 0
},
{
"type": "variable_if",
"name": "hyper_sublayer_w",
"value": 0
}
]
},
{
"to": [
{
"shell_command": "open -a 'kitty.app'"
"value": 1
}
],
"description": "Open kitty",
"type": "basic",
"description": "Open wezterm",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"to": [{ "shell_command": "open -a 'Wezterm.app'" }],
"type": "basic"
},
{
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_a",
"type": "variable_if",
"value": 1
}
]
},
{
"to": [
{
"shell_command": "open -a 'Microsoft Edge.app'"
}
],
"description": "Open browser",
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"to": [{ "shell_command": "open -a 'Microsoft Edge.app'" }],
"type": "basic"
},
{
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_a",
"type": "variable_if",
"value": 1
}
]
},
{
"to": [
{
"shell_command": "open -a 'Mail.app'"
}
],
"description": "Open email",
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"to": [{ "shell_command": "open -a 'Mail.app'" }],
"type": "basic"
},
{
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_a",
"type": "variable_if",
"value": 1
}
]
},
{
"to": [
{
"shell_command": "open -a 'Messages.app'"
}
],
"description": "Open iMessage",
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"to": [{ "shell_command": "open -a 'Messages.app'" }],
"type": "basic"
},
{
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_a",
"type": "variable_if",
"value": 1
}
]
},
{
"to": [
{
"shell_command": "open -a Reminders.app"
}
],
"description": "open Reminders",
"type": "basic",
"from": {
"key_code": "y",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"to": [{ "shell_command": "open -a Reminders.app" }],
"type": "basic"
},
{
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_a",
"type": "variable_if",
"value": 1
}
]
},
{
"to": [
{
"shell_command": "unused"
}
],
"description": "unused",
"type": "basic",
"from": {
"key_code": "u",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"to": [{ "shell_command": "unused" }],
"type": "basic"
},
{
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_a",
"type": "variable_if",
"value": 1
}
]
},
{
"to": [
{
"shell_command": "open -a Drafts.app"
}
],
"description": "Open Drafts",
"type": "basic",
"from": {
"key_code": "i",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"to": [{ "shell_command": "open -a Drafts.app" }],
"type": "basic"
},
{
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_a",
"type": "variable_if",
"value": 1
}
]
},
{
"to": [
{
"shell_command": "open -a 'Obsidian.app'"
}
],
"description": "open Obsidian",
"type": "basic",
"from": {
"key_code": "o",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_a",
"value": 1
}
]
"to": [{ "shell_command": "open -a 'Obsidian.app'" }],
"type": "basic"
}
]
},
@@ -302,19 +229,31 @@
"description": "Hyper Key sublayer \"r\"",
"manipulators": [
{
"conditions": [
{
"name": "hyper_sublayer_a",
"type": "variable_if",
"value": 0
},
{
"name": "hyper_sublayer_w",
"type": "variable_if",
"value": 0
}
],
"description": "Toggle Hyper sublayer r",
"type": "basic",
"from": {
"key_code": "r",
"modifiers": {
"mandatory": [
"left_command",
"left_control",
"left_shift",
"left_option"
]
}
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
},
"to": [
{
"set_variable": {
"name": "hyper_sublayer_r",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
@@ -323,48 +262,23 @@
}
}
],
"to": [
"type": "basic"
},
{
"set_variable": {
"name": "hyper_sublayer_r",
"value": 1
}
}
],
"conditions": [
{
"name": "hyper_sublayer_r",
"type": "variable_if",
"name": "hyper_sublayer_a",
"value": 0
},
{
"type": "variable_if",
"name": "hyper_sublayer_w",
"value": 0
}
]
},
{
"to": [
{
"shell_command": "open raycast://extensions/koinzhang/paste-as-plain-text/paste-as-plain-text?arguments=%7B%22advancedPasteFormat%22%3A%22%22%7D"
"value": 1
}
],
"description": "Paste as Plain Text",
"type": "basic",
"from": {
"key_code": "v",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_r",
"value": 1
}
]
"to": [{ "shell_command": "open raycast://extensions/koinzhang/paste-as-plain-text/paste-as-plain-text?arguments=%7B%22advancedPasteFormat%22%3A%22%22%7D" }],
"type": "basic"
}
]
},
@@ -372,19 +286,31 @@
"description": "Hyper Key sublayer \"w\"",
"manipulators": [
{
"conditions": [
{
"name": "hyper_sublayer_a",
"type": "variable_if",
"value": 0
},
{
"name": "hyper_sublayer_r",
"type": "variable_if",
"value": 0
}
],
"description": "Toggle Hyper sublayer w",
"type": "basic",
"from": {
"key_code": "w",
"modifiers": {
"mandatory": [
"left_command",
"left_control",
"left_shift",
"left_option"
]
}
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
},
"to": [
{
"set_variable": {
"name": "hyper_sublayer_w",
"value": 1
}
}
],
"to_after_key_up": [
{
"set_variable": {
@@ -393,202 +319,135 @@
}
}
],
"to": [
"type": "basic"
},
{
"set_variable": {
"name": "hyper_sublayer_w",
"value": 1
}
}
],
"conditions": [
{
"name": "hyper_sublayer_w",
"type": "variable_if",
"name": "hyper_sublayer_a",
"value": 0
},
{
"type": "variable_if",
"name": "hyper_sublayer_r",
"value": 0
}
]
},
{
"to": [
{
"shell_command": "unused"
"value": 1
}
],
"description": "unused",
"type": "basic",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"to": [{ "shell_command": "unused" }],
"type": "basic"
},
{
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_w",
"type": "variable_if",
"value": 1
}
]
},
{
"to": [
{
"shell_command": "unused"
}
],
"description": "unused",
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"to": [{ "shell_command": "unused" }],
"type": "basic"
},
{
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_w",
"type": "variable_if",
"value": 1
}
]
},
{
"to": [
{
"shell_command": "unused"
}
],
"description": "unused",
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"to": [{ "shell_command": "unused" }],
"type": "basic"
},
{
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_w",
"type": "variable_if",
"value": 1
}
]
},
{
"to": [
{
"shell_command": "open -a Calendar.app"
}
],
"description": "open Calendar",
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"to": [{ "shell_command": "open -a Calendar.app" }],
"type": "basic"
},
{
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_w",
"type": "variable_if",
"value": 1
}
]
},
{
"to": [
{
"shell_command": "open -a 'Microsoft Word.app'"
}
],
"description": "open Microsoft Word",
"type": "basic",
"from": {
"key_code": "u",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"to": [{ "shell_command": "open -a 'Microsoft Word.app'" }],
"type": "basic"
},
{
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_w",
"type": "variable_if",
"value": 1
}
]
},
{
"to": [
{
"shell_command": "open -a 'Microsoft Excel.app'"
}
],
"description": "open Microsoft Excel",
"type": "basic",
"from": {
"key_code": "i",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"to": [{ "shell_command": "open -a 'Microsoft Excel.app'" }],
"type": "basic"
},
{
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_w",
"type": "variable_if",
"value": 1
}
]
},
{
"to": [
{
"shell_command": "open -a 'Microsoft Teams.app'"
}
],
"description": "open Microsoft Teams",
"type": "basic",
"from": {
"key_code": "o",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"to": [{ "shell_command": "open -a 'Microsoft Teams.app'" }],
"type": "basic"
},
{
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_w",
"type": "variable_if",
"value": 1
}
]
},
{
"to": [
{
"shell_command": "open -a 'Microsoft Outlook.app'"
}
],
"description": "open Microsoft Outlook",
"type": "basic",
"from": {
"key_code": "p",
"modifiers": {
"mandatory": ["any"]
}
"modifiers": { "mandatory": ["any"] }
},
"conditions": [
{
"type": "variable_if",
"name": "hyper_sublayer_w",
"value": 1
}
]
"to": [{ "shell_command": "open -a 'Microsoft Outlook.app'" }],
"type": "basic"
}
]
},
@@ -596,23 +455,12 @@
"description": "Hyper Key + h",
"manipulators": [
{
"to": [
{
"key_code": "left_arrow"
}
],
"type": "basic",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"left_command",
"left_control",
"left_shift",
"left_option"
]
}
}
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
},
"to": [{ "key_code": "left_arrow" }],
"type": "basic"
}
]
},
@@ -620,23 +468,12 @@
"description": "Hyper Key + j",
"manipulators": [
{
"to": [
{
"key_code": "down_arrow"
}
],
"type": "basic",
"from": {
"key_code": "j",
"modifiers": {
"mandatory": [
"left_command",
"left_control",
"left_shift",
"left_option"
]
}
}
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
},
"to": [{ "key_code": "down_arrow" }],
"type": "basic"
}
]
},
@@ -644,23 +481,12 @@
"description": "Hyper Key + k",
"manipulators": [
{
"to": [
{
"key_code": "up_arrow"
}
],
"type": "basic",
"from": {
"key_code": "k",
"modifiers": {
"mandatory": [
"left_command",
"left_control",
"left_shift",
"left_option"
]
}
}
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
},
"to": [{ "key_code": "up_arrow" }],
"type": "basic"
}
]
},
@@ -668,23 +494,12 @@
"description": "Hyper Key + l",
"manipulators": [
{
"to": [
{
"key_code": "right_arrow"
}
],
"type": "basic",
"from": {
"key_code": "l",
"modifiers": {
"mandatory": [
"left_command",
"left_control",
"left_shift",
"left_option"
]
}
}
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
},
"to": [{ "key_code": "right_arrow" }],
"type": "basic"
}
]
},
@@ -692,24 +507,17 @@
"description": "Hyper Key + f",
"manipulators": [
{
"from": {
"key_code": "f",
"modifiers": { "mandatory": ["left_command", "left_control", "left_shift", "left_option"] }
},
"to": [
{
"key_code": "b",
"modifiers": ["left_control"]
}
],
"type": "basic",
"from": {
"key_code": "f",
"modifiers": {
"mandatory": [
"left_command",
"left_control",
"left_shift",
"left_option"
]
}
}
"type": "basic"
}
]
}
@@ -732,9 +540,7 @@
],
"name": "Default profile",
"selected": true,
"virtual_hid_keyboard": {
"keyboard_type_v2": "ansi"
}
"virtual_hid_keyboard": { "keyboard_type_v2": "ansi" }
}
]
}