Skip to content

Instantly share code, notes, and snippets.

@janv
Last active January 25, 2016 21:55
Show Gist options
  • Save janv/b9b3ae49e3c23a91c312 to your computer and use it in GitHub Desktop.
Save janv/b9b3ae49e3c23a91c312 to your computer and use it in GitHub Desktop.
# This is the default .slate file.
# If no ~/.slate file exists this is the file that will be used.
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Resize in vertical direction, cycle through 1/3, 1/2, 2/3, full, either top or bottom. Up ends in full, Down ends in middle third
bind up:ctrl;alt;cmd chain move windowTopLeftX;0 windowSizeX;screenSizeY/3 | move windowTopLeftX;0 windowSizeX;screenSizeY/2 | move windowTopLeftX;0 windowSizeX;screenSizeY*2/3 | move windowTopLeftX;0 windowSizeX;screenSizeY
bind down:ctrl;alt;cmd chain move windowTopLeftX;screenSizeY*2/3 windowSizeX;screenSizeY/3 | move windowTopLeftX;screenSizeY/2 windowSizeX;screenSizeY/2 | move windowTopLeftX;screenSizeY/3 windowSizeX;screenSizeY*2/3 | move windowTopLeftX;screenSizeY/3 windowSizeX;screenSizeY/3
# Resize in Horizontal direction, cycle through 1/3, 1/2, 2/3, full, either left or right. Right ends in full, Left ends in middle third
bind left:ctrl;alt;cmd chain move 0;windowTopLeftY screenSizeX/3;windowSizeY | move 0;windowTopLeftY screenSizeX/2;windowSizeY | move 0;windowTopLeftY screenSizeX*2/3;windowSizeY | move screenSizeX/3;windowTopLeftY screenSizeX/3;windowSizeY
bind right:ctrl;alt;cmd chain move screenSizeX*2/3;windowTopLeftY screenSizeX/3;windowSizeY | move screenSizeX/2;windowTopLeftY screenSizeX/2;windowSizeY | move screenSizeX/3;windowTopLeftY screenSizeX*2/3;windowSizeY | move 0;windowTopLeftY screenSizeX;windowSizeY
bind m:ctrl;alt;cmd chain move 0;0 screenSizeX;screenSizeY | move (screenSizeX-1024)/2;(screenSizeY-720)/2 1024;720
bind left:ctrl;cmd focus left
bind right:ctrl;cmd focus right
bind up:ctrl;cmd focus up
bind down:ctrl;cmd focus down
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment