Last active
December 26, 2015 07:19
-
-
Save takumakei/7114555 to your computer and use it in GitHub Desktop.
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
# | |
# | |
# | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
config secondsBeforeRepeat 0.1 | |
config secondsBetweenRepeat 0.07 | |
alias padding screenSizeY*0.007 | |
alias left-x screenOriginX+${padding} | |
alias right-x screenOriginX+screenSizeX/2+(${padding})/2 | |
alias top-y screenOriginY+${padding} | |
alias bottom-y screenOriginY+screenSizeY/2+(${padding})/2 | |
alias q-width screenSizeX/2-(${padding})*1.5 | |
alias q-height screenSizeY/2-(${padding})*1.5 | |
alias h-left-x ${left-x}+${padding} | |
alias h-right-x ${right-x}+${padding} | |
alias h-top-y ${top-y}+${padding} | |
alias h-bottom-y ${bottom-y}+${padding} | |
alias h-width screenSizeX-(${padding})*4 | |
alias h-height screenSizeY/2-(${padding})*4 | |
alias v-width screenSizeX/2-(${padding})*4 | |
alias v-height screenSizeY-(${padding})*4 | |
alias top-left move ${left-x};${top-y} ${q-width};${q-height} | |
alias bottom-left move ${left-x};${bottom-y} ${q-width};${q-height} | |
alias top-right move ${right-x};${top-y} ${q-width};${q-height} | |
alias bottom-right move ${right-x};${bottom-y} ${q-width};${q-height} | |
alias center1 move screenOriginX+screenSizeX*0.2;screenOriginY+screenSizeY*0.1 screenSizeX*0.6;screenSizeY*0.8 | |
alias center2 move screenOriginX+screenSizeX*0.1;screenOriginY+screenSizeY*0.05 screenSizeX*0.8;screenSizeY*0.9 | |
alias center3 move screenOriginX;screenOriginY screenSizeX;screenSizeY | |
alias move-offset1-x screenSizeX*0.05 | |
alias move-offset1-y screenSizeY*0.05 | |
alias move-offset2-x screenSizeX*0.025 | |
alias move-offset2-y screenSizeY*0.025 | |
alias tile-left move ${h-left-x};${h-top-y} ${v-width};${v-height} | |
alias tile-down move ${h-left-x};${h-bottom-y} ${h-width};${h-height} | |
alias tile-up move ${h-left-x};${h-top-y} ${h-width};${h-height} | |
alias tile-right move ${h-right-x};${h-top-y} ${v-width};${v-height} | |
alias move-left-1 nudge -${move-offset2-x} +0 | |
alias move-down-1 nudge +0 +${move-offset2-y} | |
alias move-up-1 nudge +0 -${move-offset2-y} | |
alias move-right-1 nudge +${move-offset2-x} +0 | |
alias move-left-2 nudge -${move-offset1-x} +0 | |
alias move-down-2 nudge +0 +${move-offset1-y} | |
alias move-up-2 nudge +0 -${move-offset1-y} | |
alias move-right-2 nudge +${move-offset1-x} +0 | |
alias larger-1 move windowTopLeftX+50;windowTopLeftY+50 windowSizeX-100;windowSizeY-100 | |
alias smaller-1 move windowTopLeftX-50;windowTopLeftY-50 windowSizeX+100;windowSizeY+100 | |
alias larger-2 move windowTopLeftX+25;windowTopLeftY+25 windowSizeX-50;windowSizeY-50 | |
alias smaller-2 move windowTopLeftX-25;windowTopLeftY-25 windowSizeX+50;windowSizeY+50 | |
bind h:ctrl;alt;cmd ${move-left-1} | |
bind j:ctrl;alt;cmd ${move-down-1} | |
bind k:ctrl;alt;cmd ${move-up-1} | |
bind l:ctrl;alt;cmd ${move-right-1} | |
bind h:shift;alt;cmd ${move-left-2} | |
bind j:shift;alt;cmd ${move-down-2} | |
bind k:shift;alt;cmd ${move-up-2} | |
bind l:shift;alt;cmd ${move-right-2} | |
bind left:ctrl;alt;cmd ${tile-left} | |
bind down:ctrl;alt;cmd ${tile-down} | |
bind up:ctrl;alt;cmd ${tile-up} | |
bind right:ctrl;alt;cmd ${tile-right} | |
bind -:ctrl;alt;cmd ${larger-1} | |
bind ;:ctrl;alt;cmd ${smaller-1} | |
bind -:shift;alt;cmd ${larger-2} | |
bind ;:shift;alt;cmd ${smaller-2} | |
bind 7:ctrl;alt;cmd ${top-left} | |
bind 8:ctrl;alt;cmd ${bottom-left} | |
bind 9:ctrl;alt;cmd ${top-right} | |
bind 0:ctrl;alt;cmd ${bottom-right} | |
bind y:ctrl;alt;cmd move windowTopLeftX;0 windowSizeX;screenSizeY | |
bind u:ctrl;alt;cmd undo | |
bind i:ctrl;alt;cmd chain ${top-left} | ${bottom-left} | ${top-right} | ${bottom-right} | |
bind o:ctrl;alt;cmd chain ${center1} | ${center2} | ${center3} | |
bind r:ctrl;alt;cmd relaunch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment