Skip to content

Instantly share code, notes, and snippets.

@dholdren
Created September 23, 2015 20:20
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 dholdren/f53054828af024d52b61 to your computer and use it in GitHub Desktop.
Save dholdren/f53054828af024d52b61 to your computer and use it in GitHub Desktop.
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
config windowHintsShowIcons true
#config windowHintsIgnoreHiddenWindows false
config windowHintsDuration 4
config windowHintsSpread true
# 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
alias center move screenOriginX+screenSizeX/6;screenOriginY+screenSizeY/6 2*screenSizeX/3;2*screenSizeY/3
alias bigCenter move screenOriginX+screenSizeX/12;screenOriginY+screenSizeY/12 10*screenSizeX/12;10*screenSizeY/12
alias triple ctrl;alt;cmd
# Location bindings
bind left:${triple} ${lefthalf}
bind m:${triple} ${full}
bind right:${triple} ${righthalf}
bind up:${triple} ${tophalf}
bind down:${triple} ${bottomhalf}
bind c:${triple} ${center}
bind v:${triple} ${bigCenter}
bind i:${triple} ${topleft}
bind o:${triple} ${topright}
bind k:${triple} ${bottomleft}
bind l:${triple} ${bottomright}
# Monitor switching bindings
bind right:alt,ctrl throw 1 resize
bind left:alt,ctrl throw 0 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