Created
November 26, 2012 13:27
-
-
Save avhm/4148199 to your computer and use it in GitHub Desktop.
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
# Configs | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
config secondsBetweenRepeat 0.1 | |
config checkDefaultsOnLoad true | |
config focusCheckWidthMax 3000 | |
config keyboardLayout querty | |
config windowHintsShowIcons true | |
config windowHintsIgnoreHiddenWindows false | |
config windowHintsDuration 5 | |
config windowHintsSpread true | |
#config windowHintsOrder persist | |
# Monitor Aliases | |
alias mon-laptop 1366x768; | |
alias mon-work 2560x1440;1920x1200; | |
# Misc Aliases | |
alias showHintsLeftHand hint QWERTYUIOP | |
alias showNormalHint hint ASDFGHJKLZXCVBNM | |
alias browser 'Safari' | |
alias devbrowser 'Google Chrome' | |
alias editor 'Sublime Text 2' | |
# 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 | |
alias righttop move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY/2 | |
alias rightbottom move screenOriginX+screenSizeX/2;screenOriginY+screenSizeY/2 screenSizeX/2;screenSizeY/2 | |
# Concrete positions | |
alias 1-full move screenOriginX;screenOriginY screenSizeX;screenSizeY | |
alias 1-left move screenOriginX;screenOriginY screenSizeX/2;screenSizeY | |
alias 1-right move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY | |
# 1 Monitor layout | |
layout macbookair 'iTerm':MAIN_FIRST ${full} | |
layout macbookair 'Sublime Text 2':MAIN_FIRST ${full} | |
layout macbookair 'Safari':REPEAT ${full} | |
layout macbookair 'Google Chrome':REPEAT ${full} | |
layout macbookair 'Mail':MAIN_FIRST ${full} | |
layout macbookair 'iCal':MAIN_FIRST ${full} | |
layout macbookair 'Preview':MAIN_FIRST ${full} | |
# Laptop Layout | |
layout bigmon 'iTerm':MAIN_FIRST ${full} | |
layout bigmon 'Sublime Text 2':MAIN_FIRST ${lefthalf} | |
layout bigmon 'Safari':REPEAT ${righthalf} | |
layout bigmon 'Google Chrome':REPEAT ${righthalf} | |
layout bigmon 'Mail':MAIN_FIRST ${lefthalf} | |
layout bigmon 'Calendar':MAIN_FIRST ${righthalf} | |
layout bigmon 'Preview':MAIN_FIRST ${lefthalf} | |
# Default Layouts | |
default macbookair resolutions:${mon-laptop}; | |
default bigmon resolutions:${mon-work}; | |
# Numpad 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-work}:8,3 | |
bind pad+ throw next | |
bind pad. focus behind | |
bind e:cmd ${showNormalHint} | |
# ====================================== | |
# The HYPER key | |
# ====================================== | |
alias hyper cmd,ctrl,alt | |
# Location Bindings | |
bind return:${hyper} ${full} | |
bind 1:${hyper} layout macbookair | |
bind 2:${hyper} layout bigmon | |
# bind r:${hyper} throw next | |
# Resize bindings | |
#bind r:${hyper} ${leftmost} | |
#bind g:${hyper} ${rightmost} | |
# Focus Bindings | |
bind right:${hyper} ${righthalf} | |
bind left:${hyper} ${lefthalf} | |
bind up:${hyper} ${righttop} | |
bind down:${hyper} ${rightbottom} | |
# App bindings | |
bind n:${hyper} focus ${devbrowser} | |
bind b:${hyper} focus ${browser} | |
bind e:${hyper} focus ${editor} | |
bind m:${hyper} focus 'Mail' | |
bind i:${hyper} focus 'iTerm' | |
bind o:${hyper} focus 'Path Finder' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment