#Slate configuration Configuration file for my Slate setup.
Installation
Clone this repository to a folder of your choice and follow this guide to get going. This setup is using a "Hyper" key, we will assume you want it set to Caps Lock.
###Install PCKeyboardHack First step is to install PCKeyboardHack to bind the Caps Lock key to F19 (a key that doesn't even exist on most keyboards).
- Launch
PCKeyboardHack
- Check the checkbox next to
Change Caps Lock
- Set it to keycode
80
In order to not confuse OS X you have to disable to Caps Lock as well.
- Open
System Preferences
- Go to
Keyboard
- Click
Modifier Keys...
button - Next to
Caps Lock (⇪) Key
selectNo Action
(make sure you do it on every keyboard if you have more than one connected)
###Install KeyRemap4MacBook Now you have to install KeyRemap4MacBook in order to bind the F19 to "Hyper" key (Control + Shift + Option + Command).
- Launch KeyRemap4MacBook
- Go to
Misc & Uninstall
- Click
Open private.xml
underCustom Setting
- Make sure it has the following content and save it.
<?xml version="1.0"?>
<root>
<item>
<name>Remap F19 to Hyper</name>
<appendix>OS X doesn't have a Hyper. This maps F19 to Control + Shift + Option + Command.</appendix>
<identifier>usercustom.f19_to_hyper</identifier>
<autogen>
--KeyToKey--
KeyCode::F19,
KeyCode::COMMAND_L,
ModifierFlag::OPTION_L | ModifierFlag::SHIFT_L | ModifierFlag::CONTROL_L
</autogen>
</item>
</root>
###Final step Get the latest version of Slate then run this command in the terminal from the folder where you cloned the repository. This will create a symlink in the user folder that Slate can read.
ln config.slate ~/.slate
Open Slate and enjoy!
##How to use This setup uses the following keyboard shortcuts.
Shortcut | What it does |
---|---|
⇪ + A | First trigger: Move and resize the window to the left side of the screen, Second trigger: Throw window to screen to the left |
⇪ + S | First trigger: Move and resize the window to the right side of the screen, Second trigger: Throw window to screen to the right |
⇪ + Z | Undo last action |
⇪ + Space | First trigger: Move and resize the window to screen center, Second trigger: Move and resize the window to full screen |
⇪ + X | Hide the window |
⇪ + G | Show the grid |
⇪ + 1 | Switch to "Mail" |
⇪ + 2 | Switch to "Google Chrome" |
⇪ + 3 | Switch to "Skype" |
⇪ + 4 | Switch to "Messages" |
⇪ + Q | Switch to "Sublime Text" |
⇪ + W | Switch to "Google Chrome" (Still waiting for a good way to switch to Canary) |
⇪ + R | Switch to "iTerm" |
⇪ + E | Switch to "SourceTree" |
⇪ + Return | Relaunch Slate |
##Resources and read more A blog post by Tristan Hume was the main reason I started using Slate and the Caps Lock Hack was taken from a blog post by Tenshu.
I'm always interested in enhancing my workflow so feel free to fork and make pull requests!