A feature I'm really missing is the ability to launch an application with a keyboard shortcut
Try Hammerspoon http://www.hammerspoon.org/
I could also use the feature in quicksilver. My real question here is to see if @tekezo thinks this is out of scope for Karabiner-Elements or not.
Launcher Mode was an amazing feature in Karabiner, and one upon which I relied quite heavily.
This feature allows the user to switch to applications by holding o and pressing an associated key.
Examples:
o+x: Launch Xcodeo+t: Launch Terminalo+xx: Launch Simulatoro+c: Launch Chromeo+a: Launch Activity MonitorIs there planned support for Launcher Mode in Karabiner-Elements?
This is crucial for me. Hope it is added soon.
I figured it out! I'm using Hammerspoon to recreate a "Launcher Mode". First, I instructed Karabiner-Elements to map right_command to f19, and then I built a Hammerspoon-based Launcher Mode around f19. I use right-cmd + T for Terminal, for example. See my config file here:
https://github.com/JakeSc/dotfiles/blob/master/hammerspoon/init.lua
Hello, @JakeSc
I am wondering if you can cook up something for being able to chain more then 1 character after the special modifier key like hyper + x, y or even hyper + x, y, z in hammerspoon.
much appercitaed
Launcher Mode is better than any other software, It's really awesome!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
FYI. I switched to use https://itunes.apple.com/us/app/thor/id1120999687 instead
You can use shell_command.
https://pqrs.org/osx/karabiner/json.html#typical-complex_modifications-examples-open-alfred-when-escape-is-held-down
Just to help my fellow googlers: this is what you add to your ~/.config/karabiner/karabiner.json file, as an entry under the rules: list:
"rules": [
{
"description": "Open Google Chrome",
"manipulators": [
{
"type": "basic",
"from": {
"key_code": "g",
"modifiers": {
"mandatory": [
"command",
"control"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"shell_command": "open -a 'Google Chrome.app'"
}
]
}
]
},
In this case, I'm mapping Cmd+Ctrl+g to open Google Chrome. On Mac, this can also be done with an Automator "service" script, but I've found that is generally really laggy. Also my Keyboard Shortcut "Services" section in System Prefs is really buggy/slow to modify. Shortcuts defined with Karabiner seem to be pretty much instantaneous.
For people searching for this, I built a small utility app inspired by the awesomeness that was Launcher Mode. Check it out here: https://switchfaster.com/
Basically it uses right-command + (any other hotkey) to launch or switch to the given app. You can also switch the trigger key to use right-option as well. Let me know if you have some feedback, I'd love to hear it!
Most helpful comment
Just to help my fellow googlers: this is what you add to your
~/.config/karabiner/karabiner.jsonfile, as an entry under therules:list:In this case, I'm mapping
Cmd+Ctrl+gto open Google Chrome. On Mac, this can also be done with an Automator "service" script, but I've found that is generally really laggy. Also my Keyboard Shortcut "Services" section in System Prefs is really buggy/slow to modify. Shortcuts defined with Karabiner seem to be pretty much instantaneous.