Created
October 3, 2012 19:53
-
-
Save juliend2/3829424 to your computer and use it in GitHub Desktop.
My slate config file
This file contains hidden or 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
# Configs | |
# -------------------------------------------------- | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
# Aliases | |
# -------------------------------------------------- | |
alias push-full-screen push up bar-resize:screenSizeY | push right bar-resize:screenSizeX | |
alias push-full-screen-top throw 0 resize | |
alias push-full-screen-bottom throw 1 resize | |
# Layouts | |
# -------------------------------------------------- | |
# julien laptop (no external monitor) : | |
layout julienlaptop 'iTerm' ${push-full-screen} | |
layout julienlaptop 'Google Chrome' ${push-full-screen} | |
layout julienlaptop 'Firefox' ${push-full-screen} | |
layout julienlaptop 'MacVim' ${push-full-screen} | |
layout julienlaptop 'Vico' ${push-full-screen} | |
layout julienlaptop 'iTunes' ${push-full-screen} | |
# julien laptop WITH external monitor : | |
layout julienexternal 'iTerm' ${push-full-screen-top} | |
layout julienexternal 'Google Chrome' ${push-full-screen-top} | |
layout julienexternal 'Firefox' ${push-full-screen-top} | |
layout julienexternal 'MacVim' ${push-full-screen-top} | |
layout julienexternal 'Vico' ${push-full-screen-bottom} | ${push-full-screen-bottom} # most of the time, i have 'Pass' and 'Wiki' windows open | |
layout julienexternal 'iTunes' ${push-full-screen-bottom} | |
layout julienexternal 'Finder' throw 1 resize:screenSizeX;screenSizeY/2 | throw 1 resize:screenSizeX;screenOriginY+screenSizeY/2 | |
default julienlaptop count:1 | |
default julienexternal count:2 | |
# Resize Bindings | |
# -------------------------------------------------- | |
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 | |
bind m:ctrl;alt;cmd ${push-full-screen} | |
# Push Bindings | |
# -------------------------------------------------- | |
bind right:ctrl;alt;cmd push right bar-resize:screenSizeX/2 | |
bind left:ctrl;alt;cmd push left bar-resize:screenSizeX/2 | |
bind up:ctrl;alt;cmd push up bar-resize:screenSizeY/2 | |
bind down:ctrl;alt;cmd push down bar-resize:screenSizeY/2 | |
# Nudge Bindings | |
# -------------------------------------------------- | |
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 | |
# Window Hints | |
# -------------------------------------------------- | |
bind esc:cmd hint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment