Skip to content

Instantly share code, notes, and snippets.

@stevschmid
Created October 4, 2013 14:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevschmid/6827388 to your computer and use it in GitHub Desktop.
Save stevschmid/6827388 to your computer and use it in GitHub Desktop.
This is not the greatest slate configuration in the world. This is just a tribute.
# from http://thume.ca/howto/2012/11/19/using-slate/
# general config
config defaultToCurrentScreen true
# Shows app icons and background apps, spreads icons in the same place.
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
# window hints
bind g:cmd hint ASDFGHJKLQWERTYUIOPCVBN
# window grid
#bind e:cmd grid padding:5 0:2,2 1:2,2
# 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 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
alias prev_screen move screenOriginX;screenOriginY windowSizeX;windowSizeY prev
alias next_screen move screenOriginX;screenOriginY windowSizeX;windowSizeY next
alias leftspec move screenOriginX;screenOriginY screenSizeX*1/2;screenSizeY
alias rightspec move screenOriginX+screenSizeX*1/2;screenOriginY screenSizeX*1/2;screenSizeY
alias topspec move screenOriginX;screenOriginY screenSizeX;screenSizeY*1/2
alias bottomspec move screenOriginX;screenOriginY+screenSizeY*1/2 screenSizeX;screenSizeY*1/2
bind f9:cmd ${full}
bind f10:cmd ${leftspec}
bind f11:cmd ${rightspec}
bind f10:cmd,shift ${topspec}
bind f11:cmd,shift ${bottomspec}
bind right:cmd,shift ${next_screen}
bind left:cmd,shift ${prev_screen}
bind i:ctrl focus 'Google Chrome'
bind s:ctrl focus 'Sublime Text 2'
bind t:ctrl focus 'iTerm'
bind g:ctrl focus 'SourceTree'
bind m:ctrl focus 'Mail'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment