Skip to content

Instantly share code, notes, and snippets.

@klamping
Last active December 14, 2015 17:59
Show Gist options
  • Save klamping/5125604 to your computer and use it in GitHub Desktop.
Save klamping/5125604 to your computer and use it in GitHub Desktop.
Slate configuration
config defaultToCurrentScreen true
# Shows app icons and background apps, spreads icons in the same place.
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
# Monitor Aliases
alias mon-laptop 0
alias mon-NEC 1
# 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 1-full move screenOriginX;screenOriginY screenSizeX;screenSizeY ${mon-laptop}
alias 2-full move screenOriginX;screenOriginY screenSizeX;screenSizeY ${mon-NEC}
# Common Layouts
layout 1monitor 'Sublime Text 2':REPEAT ${full}
layout 1monitor 'Google Chrome':REPEAT ${full}
layout 2monitors 'Google Chrome':REPEAT ${1-full}
layout 2monitors 'Sublime Text 2':REPEAT ${2-full}
# Default Layouts
default 2monitors resolutions:${mon-laptop};${mon-NEC};
default 1monitor resolutions:${mon-laptop}
# Bindings
bind e:alt hint ASDFGHJKLQWERTYUIOPCVBN # use whatever keys you want
bind f:alt ${full}
bind g:alt grid padding:5 0:6,2 1:6,2
bind b:cmd;alt focus 'Google Chrome'
bind e:cmd;alt focus 'Sublime Text 2'
bind 1:alt layout 1monitor
bind 2:alt layout 2monitors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment