Created
September 17, 2023 01:31
-
-
Save svallory/0cc08750e5ae837adad3ee3dde3599c9 to your computer and use it in GitHub Desktop.
Quake-style Hotkey Window for Wezterm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Quake-style Hotkey Window for Wezterm", | |
"rules": [ | |
{ | |
"description": "Launch/show Wezterm if it is not in foreground", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "escape", | |
"modifiers": { | |
"mandatory": ["control"] | |
} | |
}, | |
"to": [ | |
{ | |
"shell_command": "open '/Applications/WezTerm.app'" | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_unless", | |
"bundle_identifiers": ["^com\\.github\\.wez\\.wezterm$"] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"description": "Minimize Wezterm if it is in foreground", | |
"manipulators": [ | |
{ | |
"type": "basic", | |
"from": { | |
"key_code": "escape", | |
"modifiers": { | |
"mandatory": ["control"] | |
} | |
}, | |
"to": [ | |
{ | |
"key_code": "h", | |
"modifiers": ["command"] | |
} | |
], | |
"conditions": [ | |
{ | |
"type": "frontmost_application_if", | |
"bundle_identifiers": ["^com\\.github\\.wez\\.wezterm$"] | |
} | |
] | |
} | |
] | |
} | |
] | |
} |
What is this for? Wezterm uses Lua for configuration... and this is obviously JSON.
Oh… I wasn't expecting anyone to find this :)
This is a rule configuration for Karabiner
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is this for? Wezterm uses Lua for configuration... and this is obviously JSON.