Created
April 6, 2020 08:25
-
-
Save canidam/0031e869edccc14b5b7e0d2f2c667344 to your computer and use it in GitHub Desktop.
Slate configuration
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
# 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 | |
# Shows app icons and background apps, spreads icons in the same place. | |
config windowHintsShowIcons true | |
config windowHintsIgnoreHiddenWindows false | |
config windowHintsSpread true | |
# Abstract positions | |
alias fullscreen move screenOriginX;screenOriginY screenSizeX;screenSizeY | |
alias lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY | |
alias righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY | |
alias tophalf move screenOriginX;screenOriginY screenSizeX;screenSizeY/2 | |
alias bottomhalf move screenOriginX;screenOriginY+screenSizeY/2 screenSizeX;screenSizeY/2 | |
# Aliases for 2/3 | 1/3 corners (roughly - really is like 2/3 and 1/3) | |
alias lefttoptwothirds move screenOriginX;screenOriginY screenSizeX*2/3;screenSizeY/2 | |
alias leftbottwothirds move screenOriginX;screenOriginY+(screenSizeY/2) screenSizeX*2/3;screenSizeY/2 | |
alias righttoponethird move screenOriginX/3;screenOriginY screenSizeX*1/3;screenSizeY/2 | |
alias rightbotonethird move screenOriginX/3;screenOriginY+(screenSizeY/2) screenSizeX*1/3;screenSizeY/2 | |
alias toptall move screenOriginX;screenOriginY screenSizeX;screenSizeY*19/50 | |
alias bottomtall move screenOriginX;screenOriginY+(screenSizeY*19/50) screenSizeX;screenSizeY*31/50 | |
alias leftfat move screenOriginX;screenOriginY screenSizeX*2/3;screenSizeY | |
alias rightthin move screenOriginX;screenOriginY screenSizeX/3;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 threekey ctrl;alt;cmd | |
alias otherthreekey alt;cmd;shift | |
# 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 | |
bind m:${threekey} ${fullscreen} | |
bind left:${otherthreekey} move screenOriginX;screenOriginY screenSizeX*2/3;screenSizeY | |
bind right:${otherthreekey} move screenOriginX*2/3;screenOriginY screenSizeX*2/3;screenSizeY | |
bind up:${threekey} ${tophalf} | |
bind right:${threekey} ${righthalf} | |
bind left:${threekey} ${lefthalf} | |
bind down:${threekey} ${bottomhalf} | |
bind o:${threekey} ${topleft} | |
bind p:${threekey} ${topright} | |
bind l:${threekey} ${bottomleft} | |
bind ;:${threekey} ${bottomright} | |
bind o:${otherthreekey} ${lefttoptwothirds} | |
bind l:${otherthreekey} ${leftbottwothirds} | |
bind p:${otherthreekey} ${righttoponethird} | |
bind ;:${otherthreekey} ${rightbotonethird} | |
bind up:shift;alt;cmd ${toptall} | |
bind down:shift;alt;cmd ${bottomtall} | |
bind left:shift;alt;cmd ${leftfat} | |
bind right:shift;alt;cmd ${rightthin} | |
# 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% | |
# Throw Bindings | |
#bind 1:ctrl;alt throw 0 resize | |
#bind 2:ctrl;alt throw 1 resize | |
#bind 3:ctrl;alt throw 2 resize | |
#bind right:ctrl;alt;cmd throw right resizez | |
#bind left:ctrl;alt;cmd throw left resize | |
#bind up:ctrl;alt;cmd throw up resize | |
#bind down:ctrl;alt;cmd throw down resize | |
# Focus Bindings | |
#bind right:cmd focus right | |
#bind left:cmd focus left | |
#bind up:cmd focus up | |
#bind down:cmd focus down | |
#bind up:cmd;alt focus behind | |
#bind down:cmd;alt focus behind | |
# Window Hints | |
bind e:cmd hint | |
bind g:cmd grid padding:5 1:3,2 0:3,2 2:3,2 | |
bind v:${threekey} move screenOriginX;screenOriginY 1920;1080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment