Skip to content

Instantly share code, notes, and snippets.

@cro
Created December 11, 2012 21:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cro/4262119 to your computer and use it in GitHub Desktop.
Save cro/4262119 to your computer and use it in GitHub Desktop.
My slate config
# This is the default .slate file.
# If no ~/.slate file exists this is the file that will be used.
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
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
# Resize Bindings
bind right:f19,shift,ctrl resize +10% +0
bind left:f19,shift,ctrl resize -10% +0
bind up:f19,shift,ctrl resize +0 -10%
bind down:f19,shift,ctrl resize +0 +10%
bind right:f19,ctrl ${righthalf}
bind left:f19,ctrl ${lefthalf}
bind up:f19,ctrl ${topleft}
bind down:f19,ctrl ${bottomleft}
# Push Bindings
bind right:f19,ctrl,cmd push right bar-resize:screenSizeX/3
bind left:f19,ctrl,cmd push left bar-resize:screenSizeX/3
bind up:f19,ctrl,cmd push up bar-resize:screenSizeY/2
bind down:f19,ctrl,cmd push down bar-resize:screenSizeY/2
# Nudge Bindings
bind right:f19,shift,alt nudge +10% +0
bind left:f19,shift,alt nudge -10% +0
bind up:f19,shift,alt nudge +0 -10%
bind down:f19,shift,alt nudge +0 +10%
# Throw Bindings
bind 1:ctrl;alt throw 0 resize
bind 2:ctrl;alt throw 1 resize
bind 3:ctrl;alt throw 2 resize
bind right:ctrl;alt;cmd throw right resize
bind left:ctrl;alt;cmd throw left resize
bind up:ctrl;alt;cmd throw up resize
bind down:ctrl;alt;cmd throw down resize
# Focus Bindings
bind right:f19 focus right
bind left:f19 focus left
bind up:f19 focus up
bind down:f19 focus down
bind up:f19,cmd,alt focus behind
bind down:f19,cmd,alt focus behind
# Window Hints
bind esc:f19 hint
bind tab:cmd switch
# Application switcher
switchIconSize 50
bind s:f19 focus 'Safari'
bind c:f19 focus 'Chrome'
bind v:f19 focus 'MacVim'
bind p:f19 focus 'PyCharm'
bind i:f19 focus 'iTerm'
bind m:f19 focus 'Postbox'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment