Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is the default .slate file.
- # If no ~/.slate file exists this is the file that will be used.
- # GLOBAL CONFIG
- config defaultToCurrentScreen true
- config nudgePercentOf screenSize
- config resizePercentOf screenSize
- config undoMaxStackSize 20
- # The HYPER key
- alias hyper ctrl;shift;alt;cmd
- # ABSTRACT POSITIONS - windowTopLeftX, windowTopLeftY, windowSizeX, windowSizeY
- 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 res1140 move windowTopLeftX;windowTopLeftY 1140;windowSizeY
- alias res960 move windowTopLeftX;windowTopLeftY 960;windowSizeY
- alias res768 move windowTopLeftX;windowTopLeftY 768;windowSizeY
- alias res480 move windowTopLeftX;windowTopLeftY 480;windowSizeY
- alias res320 move windowTopLeftX;windowTopLeftY 320;windowSizeY
- alias leftthird corner top-left resize:screenSizeX/3;screenSizeY
- alias lefttwothirds corner top-left resize:screenSizeX*2/3;screenSizeY
- alias rightthird corner top-right resize:screenSizeX/3;screenSizeY
- alias righttwothirds corner top-right resize:screenSizeX*2/3;screenSizeY
- alias tophalf move windowTopLeftX;screenOriginY windowSizeX;screenSizeY/2
- #alias tophalf move windowTopLeftX;screenOriginY windowSizeX;max({500,min({windowSizeX,screenSizeY/2})})
- alias bottomhalf move windowTopLeftX;screenOriginY+screenSizeY/2 windowSizeX;screenSizeY/2
- alias leftcycle corner top-left resize:sum({max({0,min({1,3-ceiling(6*windowSizeX/screenSizeX)})})*4*screenSizeX/6,max({0,min({1,ceiling(6*trunc(windowSizeX)/screenSizeX)-2})})*(ceiling(6*trunc(windowSizeX)/screenSizeX)-1)*screenSizeX/6,0-max({0,min({1,ceiling(6*windowSizeX/screenSizeX)-5})})*screenSizeX/6});screenSizeY
- alias rightcycle corner top-right resize:sum({max({0,min({1,3-ceiling(6*windowSizeX/screenSizeX)})})*4*screenSizeX/6,max({0,min({1,ceiling(6*trunc(windowSizeX)/screenSizeX)-2})})*(ceiling(6*trunc(windowSizeX)/screenSizeX)-1)*screenSizeX/6,0-max({0,min({1,ceiling(6*windowSizeX/screenSizeX)-5})})*screenSizeX/6});screenSizeY
- # CORE DIRECTIONALITY
- bind space:${hyper} ${full}
- #bind j:${hyper} ${lefthalf}
- bind j:${hyper} ${leftcycle}
- bind l:${hyper} ${rightcycle}
- #bind l:${hyper} ${righthalf}
- bind i:${hyper} ${tophalf}
- bind k:${hyper} ${bottomhalf}
- bind u:${hyper} ${lefthalf}
- bind o:${hyper} ${righthalf}
- #bind h:${hyper} ${leftthird}
- #bind ;:${hyper} ${rightthird}
- # UNDO
- bind z:${hyper} undo
- # THROW TO NEW SCREEN
- bind 1:${hyper} throw 0 resize
- bind 2:${hyper} throw 1 resize
- bind 3:${hyper} throw 2 resize
- # RESPONSIVE GRID
- bind 6:${hyper} ${res320}
- bind 7:${hyper} ${res480}
- bind 8:${hyper} ${res768}
- bind 9:${hyper} ${res960}
- bind 0:${hyper} ${res1140}
- # WINDOW FOCUS
- bind right:${hyper} focus right
- bind left:${hyper} focus left
- bind up:${hyper} focus up
- bind down:${hyper} focus down
- #bind up:cmd;alt focus behind
- #bind down:cmd;alt focus behind
- # HINTS
- bind esc:cmd hint
- ############
- # DISABLED #
- ############
- # GRID
- #bind g:ctrl;alt grid padding:5 0:6,2 1:8,3
- # BETTER SWITCHER
- #bind ${hyper}:cmd switch
- #config switchOrientation vertical
- #config switchFontSize 32
- # Resize Bindings
- #bind right:alt resize +10% +0
- #bind left:alt resize -10% +0
- #bind up:alt resize +0 -10%
- #bind down:alt resize +0 +10%
- #bind right:ctrl;alt resize -10% +0 bottom-right
- #bind left:ctrl;alt resize +10% +0 bottom-right
- #bind up:ctrl;alt resize +0 +10% bottom-right
- #bind down:ctrl;alt resize +0 -10% bottom-right
- # Push Bindings
- #bind right:ctrl;cmd push right bar-resize:screenSizeX/3
- #bind left:ctrl;cmd push left bar-resize:screenSizeX/3
- #bind up:ctrl;cmd push up bar-resize:screenSizeY/2
- #bind down:ctrl;cmd push down bar-resize:screenSizeY/2
- # Nudge Bindings
- #bind right:shift;alt nudge +10% +0
- #bind left:shift;alt nudge -10% +0
- #bind up:shift;alt nudge +0 -10%
- #bind down:shift;alt nudge +0 +10%
Advertisement
Add Comment
Please, Sign In to add comment