Skip to content

Instantly share code, notes, and snippets.

Created December 18, 2012 16:17
Show Gist options
  • Save anonymous/4329366 to your computer and use it in GitHub Desktop.
Save anonymous/4329366 to your computer and use it in GitHub Desktop.
# Slate config file
# Author: Chris Fournier <chris.m.fournier@gmail.com>
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Abstract positions
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 tophalf move screenOriginX;screenOriginY screenSizeX;screenSizeY/2
alias bottomhalf move screenOriginX;screenOriginY+screenSizeY/2 screenSizeX;screenSizeY/2
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
# Push Bindings
bind right:ctrl;cmd ${righthalf}
bind left:ctrl;cmd ${lefthalf}
bind up:ctrl;cmd ${tophalf}
bind down:ctrl;cmd ${bottomhalf}
bind up:ctrl;alt ${topright}
bind down:ctrl;alt ${bottomright}
bind left:ctrl;alt ${topleft}
bind right:ctrl;alt ${bottomleft}
# Throw Bindings
bind 1:ctrl;alt throw 0 resize
bind 2:ctrl;alt throw 1 resize
bind 3:ctrl;alt throw 2 resize
# Window Hints
bind esc:cmd hint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment