Skip to content

Instantly share code, notes, and snippets.

@adamturtle
Created December 16, 2015 16:40
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 adamturtle/17e887f6d9b4aa8487b1 to your computer and use it in GitHub Desktop.
Save adamturtle/17e887f6d9b4aa8487b1 to your computer and use it in GitHub Desktop.
My .slate file
# Aliases
alias rightMonitorVertOffset 270
alias mailOffset 220
alias mailheight (1920/4)
alias textmateheight (1920-${mailheight})
alias topLeft corner top-left resize:screenSizeX/2;screenSizeY/2
alias topRight corner top-right resize:screenSizeX/2;screenSizeY/2
alias topFull corner top-left resize:screenSizeX;screenSizeY/2
alias bottomLeft corner bottom-left resize:screenSizeX/2;screenSizeY/2
alias bottomRight corner bottom-right resize:screenSizeX/2;screenSizeY/2
alias bottomFull corner bottom-left resize:screenSizeX;screenSizeY/2
alias halfLeft corner top-left resize:screenSizeX/2;screenSizeY
alias halfRight corner top-right resize:screenSizeX/2;screenSizeY
alias fullScreen move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias monitersizeX 2560
alias monitersizeY 1440
alias hyper ctrl;alt;cmd
alias hide hide all-but:'Google Chrome','Sublime Text','iTerm','Console'
# Layout
layout dev 'Google Chrome':IGNORE_FAIL,REPEAT,MAIN_FIRST corner top-left resize:screenSizeX/2;screenSizeY*.7
layout dev 'iTerm' corner bottom-left resize:screenSizeX/2;screenSizeY*.3
layout dev 'Console' corner bottom-right resize:screenSizeX/2;screenSizeY*.3
layout dev 'Sublime Text' corner top-right resize:screenSizeX/2;screenSizeY*.7
layout finder 'Finder' ${topLeft} | ${topRight} | ${bottomLeft} | ${bottomRight}
# Key bindings
bind f16 grid padding:5 1920x1200:10,5 1200x1920:5,10
bind f17 layout finder
bind f19 layout dev
bind f19 ${hide}
bind left:${hyper} ${halfLeft}
bind right:${hyper} ${halfRight}
bind up:${hyper} ${fullScreen}
bind pad1:${hyper} ${bottomLeft}
bind pad2:${hyper} ${bottomFull}
bind pad3:${hyper} ${bottomRight}
bind pad4:${hyper} ${halfLeft}
bind pad6:${hyper} ${halfRight}
bind pad7:${hyper} ${topLeft}
bind pad8:${hyper} ${topFull}
bind pad9:${hyper} ${topRight}
bind pad5:${hyper} ${fullScreen}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment