Last active
December 21, 2015 13:18
-
-
Save anfleene/6311227 to your computer and use it in GitHub Desktop.
A basic slate config
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
#TAKEN FROM http://mauriciogardini.com/post/43348489262/slate-a-mac-os-x-window-manager-for-power-users | |
# Config's directive: config name value | |
# Default to the current screen if the screen the reference does not exist. | |
config defaultToCurrentScreen true | |
# The base value for nudge percent calculation | |
config nudgePercentOf screenSize | |
# The base value for resize percent calculation | |
config resizePercentOf screenSize | |
# Aliases | |
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY | |
alias lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY | |
alias leftthird move screenOriginX;screenOriginY screenSizeX/3;screenSizeY | |
alias righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY | |
alias rightthird move screenOriginX+screenSizeX/3+screenSizeX/3;screenOriginY screenSizeX/3;screenSizeY | |
alias middlethird move screenOriginX+screenSizeX/3;screenOriginY screenSizeX/3;screenSizeY | |
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 l:alt resize +5% +0% | |
bind h:alt resize -5% -0% | |
bind k:alt resize -0% -5% | |
bind j:alt resize +0% +5% | |
bind l:ctrl;alt resize -5% -0% bottom-right | |
bind h:ctrl;alt resize +5% +0% bottom-right | |
bind k:ctrl;alt resize +0% +5% bottom-right | |
bind j:ctrl;alt resize -0% -5% bottom-right | |
# Move/Corner bindings | |
bind return:shift;cmd ${full} | |
bind k:shift;cmd ${tophalf} | |
bind j:shift;cmd ${bottomhalf} | |
bind h:shift;cmd ${lefthalf} | |
bind h:shift;alt;cmd ${leftthird} | |
bind i:shift;alt;cmd ${middlethird} | |
bind b:shift;cmd ${bottomleft} | |
bind y:shift;cmd ${topleft} | |
bind l:shift;cmd ${righthalf} | |
bind l:shift;alt;cmd ${rightthird} | |
bind .:shift;cmd ${bottomright} | |
bind p:shift;cmd ${topright} | |
# Nudge Bindings | |
#bind l:shift;alt nudge +1% +0 | |
#bind h:shift;alt nudge -1% +0 | |
#bind k:shift;alt nudge +0 -1% | |
#bind j:shift;alt nudge +0 +1% | |
# Focus Bindings | |
bind l:shift;ctrl focus right | |
bind h:shift;ctrl focus left | |
bind k:shift;ctrl focus up | |
bind j:shift;ctrl focus down | |
bind k:shift;ctrl;alt focus above | |
bind j:shift;ctrl;alt focus behind | |
# Push | |
bind l:shift;alt throw 1 | |
bind h:shift;alt throw 0 | |
# Snapshots | |
bind 1:shift;ctrl;alt snapshot dualScreen save-to-disk | |
bind 1:ctrl;alt activate-snapshot dualScreen | |
bind 2:shift;ctrl;alt snapshot laptop save-to-disk | |
bind 2:ctrl;alt activate-snapshot laptop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment