-
Notifications
You must be signed in to change notification settings - Fork 0
/
.slate
55 lines (47 loc) · 2.42 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# 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
# Alias' directive: alias name value
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY
alias leftthird move screenOriginX;screenOriginY screenSizeX/3;screenSizeY
alias righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY
alias rightthird move screenOriginX+screenSizeX/3+screenSizeX/3;screenOriginY screenSizeX/3;screenSizeY
alias middlethird move screenOriginX+screenSizeX/3;screenOriginY screenSizeX/3;screenSizeY
alias tophalf move screenOriginX;screenOriginY screenSizeX;screenSizeY/2
alias bottomhalf move screenOriginX;screenOriginY+screenSizeY/2 screenSizeX;screenSizeY/2
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
# Bind's directives: bind key:modifiers operation parameter+
# bind key:modal-key operation parameter+
# Location - Sets the window to the specified location.
bind return:shift;cmd ${full}
bind k:shift;cmd ${tophalf}
bind j:shift;cmd ${bottomhalf}
bind h:shift;cmd ${lefthalf}
bind h:shift;alt;cmd ${leftthird}
bind i:shift;alt;cmd ${middlethird}
bind b:shift;cmd ${bottomleft}
bind y:shift;cmd ${topleft}
bind l:shift;cmd ${righthalf}
bind l:shift;alt;cmd ${rightthird}
bind .:shift;cmd ${bottomright}
bind p:shift;cmd ${topright}
# Resize - Resizes the window in the specified direction
bind l:alt resize +1% +0
bind h:alt resize -1% +0
# Nudge - Nudges the window in the specified direction
bind l:shift;alt nudge +10% +0
bind h:shift;alt nudge -10% +0
# Focus - Brings the focus to the window in the specified position
bind l:shift;ctrl focus right
# Throw Bindings
bind 1:shift;cmd throw 0 resize
bind 2:shift;cmd throw 1 resize
bind 3:shift;cmd throw 2 resize
bind right:shift;cmd throw right resize
bind left:shift;cmd throw left resize