2017-09-15 14:49:29 +00:00
|
|
|
# This is my modified .slate file.
|
|
|
|
# It is based off the default (https://raw.githubusercontent.com/jigish/slate/master/Slate/default.slate)
|
|
|
|
# as well as pdilyard's (https://github.com/pdilyard/dotfiles/blob/master/.slate).
|
|
|
|
|
|
|
|
config defaultToCurrentScreen true
|
|
|
|
config nudgePercentOf screenSize
|
|
|
|
config resizePercentOf screenSize
|
|
|
|
|
2017-09-19 02:15:58 +00:00
|
|
|
# set screens
|
|
|
|
alias macbook 1680x1050
|
|
|
|
alias monitor 3008x1692
|
|
|
|
|
2017-09-15 14:49:29 +00:00
|
|
|
# variables
|
|
|
|
alias width screenSizeX
|
|
|
|
alias height screenSizeY
|
|
|
|
alias originX screenOriginX
|
|
|
|
alias originY screenOriginY
|
|
|
|
|
|
|
|
alias oneThirdWidth ${width}/3
|
|
|
|
alias oneHalfWidth ${width}/2
|
|
|
|
alias twoThirdsWidth (${oneThirdWidth}*2)
|
|
|
|
alias oneHalfHeight ${height}/2
|
|
|
|
|
|
|
|
# positions
|
|
|
|
alias full move ${originX};${originY} ${width};${height}
|
|
|
|
|
|
|
|
alias leftHalf move ${originX};${originY} ${oneHalfWidth};${height}
|
|
|
|
alias rightHalf move (${originX}+${oneHalfWidth});${originY} ${oneHalfWidth};${height}
|
|
|
|
|
|
|
|
alias topHalf move ${originX};${originY} ${width};${oneHalfHeight}
|
|
|
|
alias bottomHalf move ${originX};${originY}+${oneHalfHeight} ${width};${oneHalfHeight}
|
|
|
|
|
|
|
|
alias leftOneThird move ${originX};${originY} ${oneThirdWidth};${height}
|
|
|
|
alias leftTwoThirds move ${originX};${originY} ${twoThirdsWidth};${height}
|
2018-07-23 14:24:12 +00:00
|
|
|
alias centerOneThird move (${originX}+${oneThirdWidth});${originY} ${oneThirdWidth};${height}
|
2017-09-15 14:49:29 +00:00
|
|
|
alias rightTwoThirds move (${originX}+${oneThirdWidth});${originY} ${twoThirdsWidth};${height}
|
|
|
|
alias rightOneThird move (${originX}+${twoThirdsWidth});${originY} ${oneThirdWidth};${height}
|
|
|
|
|
2017-09-19 02:15:58 +00:00
|
|
|
# static positions
|
|
|
|
alias macbookFull ${full} ${macbook}
|
|
|
|
|
|
|
|
alias monitorFull ${full} ${monitor}
|
|
|
|
alias monitorLeft ${leftHalf} ${monitor}
|
|
|
|
alias monitorRight ${rightHalf} ${monitor}
|
|
|
|
|
2017-09-15 14:49:29 +00:00
|
|
|
# keybinding alias
|
|
|
|
alias movetrigger cmd,alt
|
|
|
|
alias extramovetrigger shift,cmd,alt
|
|
|
|
alias apptrigger ctrl,shift
|
|
|
|
|
|
|
|
# quick switching to commonly used apps
|
2018-01-23 20:21:22 +00:00
|
|
|
bind space:${apptrigger} focus 'Terminal'
|
|
|
|
bind t:${apptrigger} focus 'Terminal'
|
2017-09-15 14:49:29 +00:00
|
|
|
bind c:${apptrigger} focus 'Google Chrome'
|
|
|
|
bind s:${apptrigger} focus 'Slack'
|
|
|
|
|
|
|
|
# movement keys
|
|
|
|
bind f:${movetrigger} ${full}
|
|
|
|
bind left:${movetrigger} ${leftHalf}
|
|
|
|
bind right:${movetrigger} ${rightHalf}
|
|
|
|
bind up:${movetrigger} ${topHalf}
|
|
|
|
bind down:${movetrigger} ${bottomHalf}
|
|
|
|
bind left:${extramovetrigger} ${leftOneThird}
|
|
|
|
bind right:${extramovetrigger} ${rightOneThird}
|
2018-07-23 14:24:12 +00:00
|
|
|
bind m:${extramovetrigger} ${centerOneThird}
|
2017-09-15 14:49:29 +00:00
|
|
|
bind up:${extramovetrigger} ${leftTwoThirds}
|
|
|
|
bind down:${extramovetrigger} ${rightTwoThirds}
|
|
|
|
|
2017-09-19 02:15:58 +00:00
|
|
|
# move to other monitors
|
|
|
|
bind left:shift,ctrl,cmd throw 0 resize
|
|
|
|
bind right:shift,ctrl,cmd throw 1 resize
|
|
|
|
|
2017-09-15 14:49:29 +00:00
|
|
|
# laptop layout for coding
|
2018-01-23 20:21:22 +00:00
|
|
|
layout laptop-coding 'Terminal':REPEAT ${full}
|
2017-09-15 14:49:29 +00:00
|
|
|
layout laptop-coding 'Google Chrome':REPEAT ${full}
|
|
|
|
layout laptop-coding 'Slack':REPEAT ${full}
|
|
|
|
|
|
|
|
# laptop layout for code review
|
2018-01-23 20:21:22 +00:00
|
|
|
layout laptop-code-review 'Terminal':REPEAT ${rightHalf}
|
2017-09-15 14:49:29 +00:00
|
|
|
layout laptop-code-review 'Google Chrome':REPEAT ${leftHalf}
|
|
|
|
layout laptop-coding 'Slack':REPEAT ${full}
|
|
|
|
|
2017-09-19 02:15:58 +00:00
|
|
|
# in-the-office layout for coding
|
2018-01-23 20:21:22 +00:00
|
|
|
layout office-coding 'Terminal':REPEAT ${monitorFull}
|
2017-09-21 13:20:03 +00:00
|
|
|
layout office-coding 'Google Chrome':REPEAT ${macbookFull}
|
2017-09-19 02:15:58 +00:00
|
|
|
layout office-coding 'Slack':REPEAT ${macbookFull}
|
|
|
|
|
|
|
|
# in-the-office layout for code review
|
2018-01-23 20:21:22 +00:00
|
|
|
layout office-code-review 'Terminal':REPEAT ${monitorRight}
|
2017-09-19 02:15:58 +00:00
|
|
|
layout office-code-review 'Google Chrome':REPEAT ${monitorLeft}
|
|
|
|
layout office-code-review 'Slack':REPEAT ${macbookFull}
|
|
|
|
|
|
|
|
# default layouts
|
|
|
|
default laptop-coding resolutions:${macbook}
|
|
|
|
default office-coding resolutions:${macbook},${monitor}
|
|
|
|
|
2017-09-15 14:49:29 +00:00
|
|
|
# bind layouts to keys
|
2017-09-19 02:15:58 +00:00
|
|
|
bind 1:${movetrigger} layout office-coding
|
|
|
|
bind 2:${movetrigger} layout office-code-review
|
|
|
|
bind 3:${movetrigger} layout laptop-coding
|
|
|
|
bind 4:${movetrigger} layout laptop-code-review
|
|
|
|
|
|
|
|
|
2017-09-15 14:49:29 +00:00
|
|
|
|