Skip to content

Instantly share code, notes, and snippets.

@svallory
Created September 17, 2023 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save svallory/0cc08750e5ae837adad3ee3dde3599c9 to your computer and use it in GitHub Desktop.
Save svallory/0cc08750e5ae837adad3ee3dde3599c9 to your computer and use it in GitHub Desktop.
Quake-style Hotkey Window for Wezterm
{
"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$"]
}
]
}
]
}
]
}
@ThePython10110
Copy link

What is this for? Wezterm uses Lua for configuration... and this is obviously JSON.

@svallory
Copy link
Author

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