Created
October 5, 2012 19:03
-
-
Save trishume/3841723 to your computer and use it in GitHub Desktop.
My Slate config, requires my window hint icon patch.
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
# Configs | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
config secondsBetweenRepeat 0.1 | |
config checkDefaultsOnLoad true | |
config focusCheckWidthMax 3000 | |
config keyboardLayout dvorak | |
config windowHintsShowIcons true | |
config windowHintsIgnoreHiddenWindows false | |
#config windowHintsDuration 5 | |
config windowHintsSpread true | |
#config windowHintsOrder persist | |
# Monitor Aliases | |
alias mon-laptop 1440x900 | |
alias mon-samsung 1920x1080 | |
# Misc Aliases | |
alias showHintsLeftHand hint AOEUIYQJKX | |
# Abstract positions | |
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 rightmost move screenOriginX+screenSizeX*0.4;screenOriginY screenSizeX*0.6;screenSizeY | |
alias rightless move screenOriginX+screenSizeX*0.6;screenOriginY screenSizeX*0.4;screenSizeY | |
alias leftmost move screenOriginX;screenOriginY screenSizeX*0.6;screenSizeY | |
alias leftless move screenOriginX;screenOriginY screenSizeX*0.4;screenSizeY | |
# Concrete positions | |
alias 1-full move screenOriginX;screenOriginY screenSizeX;screenSizeY ${mon-laptop} | |
alias 1-left move screenOriginX;screenOriginY screenSizeX/2;screenSizeY ${mon-laptop} | |
alias 1-right move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY ${mon-laptop} | |
alias 1-full move screenOriginX;screenOriginY screenSizeX;screenSizeY ${mon-samsung} | |
alias 2-left move screenOriginX;screenOriginY screenSizeX/2;screenSizeY ${mon-samsung} | |
alias 2-right move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY ${mon-samsung} | |
alias 2-righttop move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY/2 ${mon-samsung} | |
alias 2-rightbottom move screenOriginX+screenSizeX/2;screenOriginY+screenSizeY/2 screenSizeX/2;screenSizeY/2 ${mon-samsung} | |
# 2 Monitor layout | |
layout 2monitors 'iTerm':MAIN_FIRST ${2-rightbottom} | ${1-left} | |
layout 2monitors 'Safari':REPEAT ${1-full} | |
layout 2monitors 'Sublime Text 2':MAIN_FIRST ${1-full} | ${2-right} | |
layout 2monitors 'Mail':MAIN_FIRST ${2-left} | |
layout 2monitors 'Path Finder':MAIN_FIRST ${2-righttop} | |
layout 2monitors 'Xcode':REPEAT ${1-full} | |
layout 2monitors 'Eclipse':REPEAT ${1-full} | |
layout 2monitors 'iTunes':REPEAT ${1-full} | |
# 1 Monitor layout | |
layout 1monitor 'iTerm':MAIN_FIRST ${1-right} | |
layout 1monitor 'Sublime Text 2':MAIN_FIRST ${1-left} | |
layout 1monitor 'Safari':REPEAT ${1-full} | |
layout 1monitor 'Mail':MAIN_FIRST ${1-full} | |
layout 1monitor 'Path Finder':MAIN_FIRST ${1-full} | |
layout 1monitor 'Xcode':REPEAT ${1-full} | |
layout 1monitor 'Eclipse':REPEAT ${1-full} | |
layout 1monitor 'iTunes':REPEAT ${1-full} | |
# Default Layouts | |
default 2monitors resolutions:${mon-laptop};${mon-samsung}; | |
default 1monitor resolutions:${mon-laptop} | |
# Basic location Bindings | |
bind pad0 ${showHintsLeftHand} | |
bind pad1 ${leftless} | |
bind pad2 push bottom bar-resize:screenSizeY/2 | |
bind pad3 ${rightless} | |
bind pad4 ${lefthalf} | |
bind pad5 ${full} | |
bind pad6 ${righthalf} | |
bind pad7 ${leftmost} | |
bind pad8 push top bar-resize:screenSizeY/2 | |
bind pad9 ${rightmost} | |
bind padEnter grid padding:5 ${mon-laptop}:6,2 ${mon-samsung}:8,3 | |
bind pad+ throw next | |
bind pad. focus behind | |
# Resize Bindings | |
# NOTE: some of these may *not* work if you have not removed the expose/spaces/mission control bindings | |
bind right:ctrl;alt resize +10% +0 | |
bind left:ctrl;alt resize -10% +0 | |
# Focus Bindings | |
# NOTE: some of these may *not* work if you have not removed the expose/spaces/mission control 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 | |
bind e:cmd hint AOEUIDHTNSYXFBPKGMCW | |
# Switch currently doesn't work well so I'm commenting it out until I fix it. | |
#bind tab:cmd switch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment