-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathslate
77 lines (67 loc) · 2.49 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
# Aliases
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias lefthalf push left bar-resize:screenSizeX/2
alias righthalf push right bar-resize:screenSizeX/2
alias tophalf push top bar-resize:screenSizeY/2
alias bottomhalf push bottom bar-resize: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
alias macbookpro 1280x800
# 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
# Convenient Sizes
bind c:ctrl;alt;cmd move screenSizeX/4;screenSizeY/4 1440;900
bind m:ctrl;alt;cmd ${full}
# Push Bindings
bind right:ctrl;cmd ${righthalf}
bind left:ctrl;cmd ${lefthalf}
bind up:ctrl;cmd ${tophalf}
bind down:ctrl;cmd ${bottomhalf}
# 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 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
# 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
bind b:ctrl;alt;cmd focus 'Google Chrome'
bind v:ctrl;alt;cmd focus 'MacVim'
bind i:ctrl;alt;cmd focus 'iTerm'
bind h:ctrl;alt;cmd focus 'HipChat'
# Window Hints
# bind esc:cmd hint QWERTYASDFGHZXCVBN
# Layouts
layout laptop 'iTerm':REPEAT ${full}
layout laptop 'MacVim':REPEAT ${full}
layout laptop 'Google Chrome':REPEAT ${full}
layout laptop 'Sparrow':REPEAT ${full}
# Layouts Defaults
default laptop resolutions:${macbookpro}