public
Last active

My Slate Config

  • Download Gist
gistfile1.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
# 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
 
# Aliases
alias 1-left push left bar-resize:screenSizeX/2
alias 1-right push right bar-resize:screenSizeX/2
alias 0-throw throw 0 resize
 
# Resize Bindings
bind l:ctrl;alt resize +10% +0
bind h:ctrl;alt resize -10% +0
bind k:ctrl;alt resize +0 -10%
bind j:ctrl;alt resize +0 +10%
bind right:ctrl;alt resize -10% +0 bottom-right
bind left:ctrl;alt resize +10% +0 bottom-right
bind down:ctrl;alt resize +0 -10% bottom-right
 
# Maximize focused
bind m:ctrl;alt;cmd move 0;0 screenSizeX;screenSizeY
 
# Push Bindings
bind right:ctrl;cmd push right bar-resize:screenSizeX/2
bind left:ctrl;cmd push left bar-resize:screenSizeX/2
bind up:ctrl;cmd push up bar-resize:screenSizeY/2
bind down:ctrl;cmd push down bar-resize:screenSizeY/2
 
# Throw Bindings
# Throw windows to another monitor
bind 1:ctrl;alt throw 0 resize
bind 2:ctrl;alt throw 1 resize
bind right:ctrl;alt;cmd throw right resize
bind left:ctrl;alt;cmd throw left resize
 
# Window Hints
bind esc:cmd hint
 
# Layouts
layout dev 'Google Chrome' ${1-left}
layout dev 'iTerm' ${1-right}
layout dev 'Sublime Text 2' ${1-right}
layout dev 'HipChat' ${0-throw}
 
layout projects 'Emacs' ${1-right}
layout projects 'iTerm' ${1-left}
layout projects 'Google Chrome' ${0-throw}
 
bind 1:ctrl;alt;cmd layout dev
bind 2:ctrl;alt;cmd layout projects
 
# Focus Bindings
# Don't care for these.. I just use regular CMD-TAB focus
#
# bind right:cmd focus right
# bind left:cmd focus left
# bind up:cmd focus up
# bind down:cmd focus down
# bind up:cmd;alt focus behind
# bind down:cmd;alt focus behind
 
# Nudge Bindings
# These conflict with my spaces keys.
# They are not that useful to me anyway
#bind right:shift;alt nudge +10% +0
#bind left:shift;alt nudge -10% +0
#bind up:shift;alt nudge +0 -10%
#bind down:shift;alt nudge +0 +10%

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.