I would like to set the command key ⌘
as the shortcut to open Launchpad, is that possible? I've tried in the System Preferences, but it won't let me.
1 Answer
To make this work you have to use a third party tool: Karabiner.
In the customized keycode below I assume that you haven't enabled the consumer key function in System Preferences but have to access the consumer keys by using the fn+F1...F12.
In the example below just the left command key launches Launchpad if hit once. A second hit will close Launchpad again.
You can use either the left or the right command key as usual otherwise (e.g. open files with cmd+O or print cmd+P)
- Download, install and open Karabiner
- Open in the menulet Karabiner -> Preferences
- Open the tab Misc & Uninstall
- Hit the button Open private.xml
- Open the file private.xml with an appropriate editor
Enter the customized keycode
<?xml version="1.0"?> <root> <item> <name>When you type Command_L only, start Launchpad</name> <appendix>(Change Command_L lazy start Launchpad)</appendix> <identifier>remap.command_l_lazy_to_launchpad</identifier> <autogen>__KeyOverlaidModifier__ KeyCode::COMMAND_L, KeyCode::VK_LAZY_COMMAND_L, KeyCode::LAUNCHPAD, ModifierFlag::FN</autogen> </item> </root>
Save the file
- Open in the menulet Karabiner -> Preferences the tab Change Key
- Hit the ReloadXML button
- Enable the remapping. It should be listed at the beginning.
-
1Thank mate! This worked a treat! I'm a long time GNOME 3 user, and have got used to opening apps by pressing command, then searching and hitting enter. :)– user133345Commented Jan 2, 2016 at 7:50
-
@ChristopherBayliss it may have been useful to know that
⌘+space
brings up spotlight which allows you to search for and launch applications. Having also used GMOME3 extensively in the past, I usually hit both keys with one finger when using OS X to save adding extra configuration.– forquareCommented Jan 2, 2016 at 9:14