Skip to content

Instantly share code, notes, and snippets.

@idan idan/.slate
Created Jan 25, 2014

Embed
What would you like to do?
Idan's Slate Config
# Idan's ~/.slate
# I don't even know what these do but they came in the default. Might not need 'em
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Shows app icons and background apps, spreads icons in the same place.
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
# Used PCKeyboardHack and KeyRemap4Macbook to remap capslock to hyper.
# http://vninja.net/osx/slate-setup/
alias hyper ctrl;alt;cmd;shift
# Window Hints
bind esc:${hyper} hint
bind tab:${hyper} switch
# Graphical grid a la Divvy
bind a:${hyper} grid padding:5 0:12,12
# Abstract position formulae
alias fullscreen 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
# Mappings
bind space:${hyper} ${fullscreen}
bind left:${hyper} ${lefthalf}
bind right:${hyper} ${righthalf}
bind up:${hyper} ${topright}
bind down:${hyper} ${bottomright}
# Quick app targets. Hyper + key switches to that app from wherever I am
bind b:${hyper} focus 'Google Chrome'
bind i:${hyper} focus 'iTerm'
bind s:${hyper} focus 'Sublime Text'
bind r:${hyper} focus 'Rdio'
bind t:${hyper} focus 'Twitter'
bind h:${hyper} focus 'Hipchat'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.