Skip to content

Instantly share code, notes, and snippets.

@romainl
Created May 6, 2015 15:52
Show Gist options
  • Save romainl/11625895e0f90ef2d66f to your computer and use it in GitHub Desktop.
Save romainl/11625895e0f90ef2d66f to your computer and use it in GitHub Desktop.
My Slate config
# ~/.slate
# Aliases
alias top-left screenOriginX+screenSizeX/8;screenOriginY+screenSizeY/8
alias width-height (screenSizeX/8)*6;(screenSizeY/8)*6
# Config
config defaultToCurrentScreen true
config resizePercentOf screenSize
# Push Bindings
bind right:cmd;alt push right bar-resize:screenSizeX/2
bind left:cmd;alt push left bar-resize:screenSizeX/2
bind up:cmd;alt push up bar-resize:screenSizeY/2
bind down:cmd;alt push down bar-resize:screenSizeY/2
# Move Bindings
bind up:ctrl;alt;cmd move screenOriginX;screenOriginY screenSizeX;screenSizeY
bind down:ctrl;alt;cmd move ${top-left} ${width-height}
# Throw Bindings
bind right:ctrl;alt;cmd throw right resize
bind left:ctrl;alt;cmd throw left resize
# Window Hints
bind esc:cmd hint 123456789
# Grid
bind f4 grid padding:5 0:6,2 1:4,2
# Focus
bind f7 focus left
bind f9 focus right
bind f7:shift focus up
bind f9:shift focus down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment