Skip to content

Instantly share code, notes, and snippets.

@msolomon
Created March 10, 2014 05:00
Show Gist options
  • Select an option

  • Save msolomon/9459728 to your computer and use it in GitHub Desktop.

Select an option

Save msolomon/9459728 to your computer and use it in GitHub Desktop.
Slate configuration file
# Slate configuration file
# Be sure to customize! See https://github.com/jigish/slate#configuring-slate
### Aliases
## Key aliases
alias hyper ctrl;shift;alt;cmd
## Application aliases
alias browser 'Google Chrome'
alias editor 'Sublime Text 2'
alias terminal 'iTerm'
## Position aliases
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY
alias righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY
alias topleft corner top-left resize:screenSizeX/2;screenSizeY/2
alias topright corner top-right resize:screenSizeX/2;screenSizeY/2
alias bottomleft corner bottom-left resize:screenSizeX/2;screenSizeY/2
alias bottomright corner bottom-right resize:screenSizeX/2;screenSizeY/2
### Bindings
## Focus Bindings
# These should be familiar to Vim users
bind k:${hyper} focus up
bind j:${hyper} focus down
bind h:${hyper} focus left
bind l:${hyper} focus right
## Location bindings
# These are laid out to be used with the right hand
# and to complement the focus bindings
bind o:${hyper} throw next
bind i:${hyper} ${full}
bind ;:${hyper} ${lefthalf}
bind ':${hyper} ${righthalf}
bind y:${hyper} ${topleft}
bind u:${hyper} ${topright}
bind b:${hyper} ${bottomleft}
bind n:${hyper} ${bottomright}
## App bindings
# These are laid out on the left hand
bind space:${hyper} focus ${editor}
bind f:${hyper} focus ${browser}
bind d:${hyper} focus ${terminal}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment