Last active
August 29, 2015 14:07
-
-
Save cflynn07/5201cec81ec36b9d9696 to your computer and use it in GitHub Desktop.
.slate
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the default .slate file. | |
# If no ~/.slate file exists this is the file that will be used. | |
config defaultToCurrentScreen true | |
cosdnfig nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
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 leftthird move screenOriginX;screenOriginY screenSizeX/3;screenSizeY | |
alias middlethird move screenOriginX+screenSizeX/3;screenOriginY screenSizeX/3;screenSizeY | |
alias rightthird move screenOriginX+screenSizeX/3+screenSizeX/3;screenOriginY screenSizeX/3;screenSizeY | |
alias topleftthird move screenOriginX;screenOriginY screenSizeX/3;screenSizeY/2 | |
alias topmiddlethird move screenOriginX+screenSizeX/3;screenOriginY screenSizeX/3;screenSizeY/2 | |
alias toprightthird move screenOriginX+screenSizeX/3+screenSizeX/3;screenOriginY screenSizeX/3;screenSizeY/2 | |
alias bottomleftthird move screenOriginX;screenOriginY+screenSizeY/2 screenSizeX/3;screenSizeY/2 | |
alias bottommiddlethird move screenOriginX+screenSizeX/3;screenOriginY+screenSizeY/2 screenSizeX/3;screenSizeY/2 | |
alias bottomrightthird move screenOriginX+screenSizeX/3+screenSizeX/3;screenOriginY+screenSizeY/2 screenSizeX/3;screenSizeY/2 | |
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 | |
# Resize Bindings | |
bind right:alt resize +10% +0 | |
bind left:alt resize -10% +0 | |
bind up:alt resize +0 -10% | |
bind down:alt 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 return:ctrl;cmd ${full} | |
bind k:ctrl;cmd ${tophalf} | |
bind j:ctrl;cmd ${bottomhalf} | |
bind h:ctrl;cmd ${lefthalf} | |
bind u:ctrl;cmd ${leftthird} | |
bind i:ctrl;cmd ${middlethird} | |
bind o:ctrl;cmd ${rightthird} | |
bind u:ctrl;alt;cmd ${topleftthird} | |
bind i:ctrl;alt;cmd ${topmiddlethird} | |
bind o:ctrl;alt;cmd ${toprightthird} | |
bind u:ctrl;alt ${bottomleftthird} | |
bind i:ctrl;alt ${bottommiddlethird} | |
bind o:ctrl;alt ${bottomrightthird} | |
bind b:ctrl;cmd ${bottomleft} | |
bind y:ctrl;cmd ${topleft} | |
bind l:ctrl;cmd ${righthalf} | |
bind .:ctrl;cmd ${bottomright} | |
bind p:ctrl;cmd ${topright} | |
# 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 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 | |
# Window Hints | |
bind i:ctrl hint | |
# Better Application Switcher | |
bind tab:cmd switch | |
bind g:cmd grid padding:5 0:6,2 1:8,3 | |
# Relaunch | |
bind /:ctrl relaunch | |
bind 1:cmd shell path:~/ '~/bin/gorun' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment