Skip to content

Instantly share code, notes, and snippets.

@rorcraft
Created June 26, 2014 18:19
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 rorcraft/f62bd8d5feeb56d7870a to your computer and use it in GitHub Desktop.
Save rorcraft/f62bd8d5feeb56d7870a 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
# Resize Bindings
bind right:alt;ctrl resize +10% +0
bind left:alt;ctrl resize -10% +0
bind up:alt;ctrl resize +0 -10%
bind down:alt;ctrl resize +0 +10%
# bind right:ctrl;alt resize -10% +0 bottom-right
# bind left:ctrl;alt resize +10% +0 bottom-right
# bind up:ctrl;alt resize +0 +10% bottom-right
# bind down:ctrl;alt resize +0 -10% bottom-right
# Push Bindings
bind right:ctrl;cmd;alt push right bar-resize:screenSizeX/2
bind left:ctrl;cmd;alt push left bar-resize:screenSizeX/2
bind up:ctrl;cmd;alt push up bar-resize:screenSizeY/2
bind down:ctrl;cmd;alt push down bar-resize:screenSizeY/2
bind m:ctrl;cmd;alt move screenOriginX;screenOriginY screenSizeX;screenSizeY
# Nudge Bindings
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%
# Throw Bindings
bind 1:ctrl;alt throw 0 resize
bind 2:ctrl;alt throw 1 resize
bind 3:ctrl;alt throw 2 resize
# bind right:ctrl;alt;cmd throw right resize
# bind left:ctrl;alt;cmd throw left resize
# bind up:ctrl;alt;cmd throw up resize
# bind down:ctrl;alt;cmd throw down resize
# Focus Bindings
bind l:ctrl;shift;cmd focus right
bind h:ctrl;shift;cmd focus left
bind k:ctrl;shift;cmd focus up
bind j:ctrl;shift;cmd focus down
bind `:ctrl;cmd focus behind
# Window Hints
bind esc:cmd hint
# Switch
# bind `:cmd focus behind
# bind `:cmd;shift focus behind
# Grid
bind esc:ctrl grid
# focus
bind ':cmd;shift focus 'Google Chrome'
bind .:cmd;shift focus 'iTerm'
bind ,:cmd;shift focus 'HipChat'
bind /:cmd,shift focus 'Firefox'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment