-
Notifications
You must be signed in to change notification settings - Fork 0
/
.slate
37 lines (29 loc) · 1.88 KB
/
.slate
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Quarters
bind 1:alt chain corner top-left resize:screenSizeX/2;screenSizeY/2 | corner top-right resize:screenSizeX/2;screenSizeY/2 | corner bottom-right resize:screenSizeX/2;screenSizeY/2 | corner bottom-left resize:screenSizeX/2;screenSizeY/2
# Halfs
bind 2:alt chain corner top-right resize:screenSizeX/2;screenSizeY | corner top-left resize:screenSizeX/2;screenSizeY | corner top-left resize:screenSizeX;screenSizeY/2 | corner bottom-left resize:screenSizeX;screenSizeY/2
# thirds
#bind 3:alt chain move screenOriginX;screenOriginY screenSizeX;screenSizeY/3 | move screenOriginX;screenOriginY+screenSizeY/3 screenSizeX;screenSizeY/3 | move screenOriginX;screenOriginY+2*screenSizeY/3 screenSizeX;screenSizeY/3
bind 3:alt chain move screenOriginX;screenOriginY screenSizeX/3;screenSizeY | move screenOriginX+1*screenSizeX/3;screenOriginY screenSizeX/3;screenSizeY | move screenOriginX+2*screenSizeX/3;screenOriginY screenSizeX/3;screenSizeY
# Full screen + Centered
bind f:alt chain corner top-left resize:screenSizeX;screenSizeY | move screenOriginX+(screenSizeX/2-(screenSizeX*0.4));screenOriginY+(screenSizeY/2-(screenSizeY*0.4)) screenSizeX*0.8;screenSizeY*0.8
# 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 resize
# bind left:ctrl;alt;cmd throw left resize
# bind up:ctrl;alt;cmd throw up resize
# bind down:ctrl;alt;cmd throw down resize
bind left:ctrl;alt;cmd throw 0 resize
bind down:ctrl;alt;cmd throw 1 resize
bind right:ctrl;alt;cmd throw 2 resize
bind up:ctrl;alt;cmd throw next resize
# # Window Hints
bind esc:cmd hint
# Nudge
bind up:ctrl,alt sequence resize +10% +10% | nudge -5% -5%
bind down:ctrl,alt sequence resize -10% -10% | nudge +5% +5%