Skip to main content

Launch Apps | Layer

Launch apps by layer + keys. When press and hold key l to activate the 'launch-app' layer:

  • c: Calendar
  • f: Finder

Use any key for the layer, also consider using:

  • simlayer('l', 'launch-app')
  • hyperLayer('l', 'launch-app')
  • duoLayer('l', ';', 'launch-app')

Copy and edit the code below in the online editor:

export const rules = () => [
layer('l', 'launch-app').manipulators({
c: toApp('Calendar'),
f: toApp('Finder'),
}),
]

Or copy the JSON below and add it to Karabiner-Elements without changes:

{
"description": "Layer - launch-app",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "l"
},
"to": [
{
"set_variable": {
"name": "launch-app",
"value": 1
}
}
],
"conditions": [
{
"type": "variable_unless",
"name": "launch-app",
"value": 1
}
],
"to_if_alone": [
{
"key_code": "l"
}
],
"to_after_key_up": [
{
"set_variable": {
"name": "launch-app",
"value": 0
}
}
]
},
{
"type": "basic",
"from": {
"key_code": "c"
},
"to": [
{
"shell_command": "open -a \"Calendar\".app"
}
],
"conditions": [
{
"type": "variable_if",
"name": "launch-app",
"value": 1
}
]
},
{
"type": "basic",
"from": {
"key_code": "f"
},
"to": [
{
"shell_command": "open -a \"Finder\".app"
}
],
"conditions": [
{
"type": "variable_if",
"name": "launch-app",
"value": 1
}
]
}
]
}