Skip to content

Instantly share code, notes, and snippets.

@zhuangya
Created March 13, 2014 08:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhuangya/9524513 to your computer and use it in GitHub Desktop.
Save zhuangya/9524513 to your computer and use it in GitHub Desktop.
config defaultToCurrentScreen true
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
config windowHintsRoundedCornerSize 10
# 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 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
alias hyper ctrl;shift;alt;cmd
# Numpad location Bindings
bind j:${hyper} push bottom bar-resize:screenSizeY/2
bind k:${hyper} push top bar-resize:screenSizeY/2
bind h:${hyper} ${lefthalf}
bind l:${hyper} ${righthalf}
bind f:${hyper} ${full}
bind z:${hyper} undo
bind r:${hyper} relaunch
bind i:${hyper} focus 'iTerm'
bind m:${hyper} focus 'MacVim'
bind g:${hyper} grid padding:5 0:7,3 1:3,3
bind e:${hyper} hint abcdefghijklmnopqrstuvwxyz
bind n:${hyper} throw 1 resize
bind p:${hyper} throw 0 resize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment