-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.slate
147 lines (129 loc) · 5.75 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# General aliases
alias sox screenOriginX
alias soy screenOriginY
alias ssx screenSizeX
alias ssy screenSizeY
# Monitor Aliases
alias mon-retina 2800x1800
alias mon-delixl 1680x1050
alias mon-dell-30 2560x1600
# Position Aliases
alias top-r move ${sox}+${ssx}/2;${soy} ${ssx}/2;${ssy}/2
alias top-r-half move ${sox}+${ssx}/2+${ssx}/4;${soy} ${ssx}/4;${ssy}/2
alias top-l move ${sox};${soy} ${ssx}/2;${ssy}/2
alias bot-l move ${sox};${soy}+${ssy}/2 ${ssx}/2;${ssy}/2
alias bot-r move ${sox}+${ssx}/2;${soy}+${ssy}/2 ${ssx}/2;${ssy}/2
alias bot-r-half move ${sox}+${ssx}/2+${ssx}/4;${soy}+${ssy}/2 ${ssx}/4;${ssy}/2
alias maximize push left bar-resize:${ssx}
alias left-notch-0 move ${sox};${soy} ${ssx}/2-60;${ssy}-23
alias left-notch-1 move ${sox};${soy}+23 ${ssx}/2-30;${ssy}-23
alias left-notch-2 move ${sox};${soy}+46 ${ssx}/2;${ssy}-46
alias h-left push left bar-resize:${ssx}/2
alias h-right push right bar-resize:${ssx}/2
alias h-top push up bar-resize:${ssy}/2
alias h-bottom push down bar-resize:${ssy}/2
#position thirds
alias 3c-right move ${sox}+${ssx}*2/3;${soy} ${ssx}/3;${ssy}
alias 3c-middle move ${sox}+${ssx}/3;${soy} ${ssx}/3;${ssy}
alias 3c-left move ${sox};${soy} ${ssx}/3;${ssy}
alias 3c-right-top move ${sox}+${ssx}*2/3;${soy} ${ssx}/3;${ssy}/2
alias 3c-right-bot move ${sox}+${ssx}*2/3;${soy}+${ssy}/2 ${ssx}/3;${ssy}/2
alias 3c-middle-top move ${sox}+${ssx}/3;${soy} ${ssx}/3;${ssy}/2
alias 3c-middle-bot move ${sox}+${ssx}/3;${soy}+${ssy}/2 ${ssx}/3;${ssy}/2
#position taller
alias tl-main move ${sox};${soy} ${ssx}*2/3;${ssy}
alias tl-right-top move ${sox}+${ssx}*2/3;${soy} ${ssx}/3;${ssy}/2
alias tl-right-bot move ${sox}+${ssx}*2/3;${soy}+${ssy}/2 ${ssx}/3;${ssy}/2
alias tl-right move ${sox}+${ssx}*2/3;${soy} ${ssx}/3;${ssy}
# Default Layouts
#default 2office resolutions:${mon-delixl};${mon-retina}
#default 2home resolutions:${mon-dell-30};${mon-retina}
#default 1retina resolutions:${mon-retina}
# 2 Monitors DeliXL Layout
layout 2office 'Safari':REPEAT ${h-left}
# main layout
layout main 'Safari':REPEAT ${left-notch-2} | ${left-notch-1} | ${left-notch-0} 0
layout main 'Google Chrome' ${left-notch-2} | ${left-notch-1} | ${left-notch-0} 0
layout main 'Terminal':REPEAT ${bot-r} 0
layout main 'Evernote':REPEAT ${bot-r} 0
layout main 'MacVim':REPEAT ${h-right} 0
layout main 'Sublime Text 2':REPEAT ${h-left} 0
layout main 'iTunes':REPEAT ${h-right} 0
layout main 'Skype':REPEAT ${top-r-half} 0
layout main 'nvALT':REPEAT ${top-r-half} 0
layout main 'Twitter':REPEAT ${top-r-half} 0
layout main 'Transmission':REPEAT ${bot-r-half} 0
layout main 'Finder' ${top-r} | ${bot-r} 0
# column layout
layout columns 'Safari':REPEAT ${3c-left} | ${3c-middle} 0
layout columns 'Google Chrome':REPEAT ${h-left} 0
layout columns 'Terminal':REPEAT ${3c-right-bot} 0
layout columns 'MacVim':REPEAT ${3c-middle} 0
layout columns 'Sublime Text 2':REPEAT ${h-left} 0
layout columns 'Skype':REPEAT ${3c-right-top} 0
layout columns 'Transmission':REPEAT ${3c-right-bot} 0
layout columns 'Finder' ${3c-middle-top} | ${3c-middle-bot} 0
layout columns 'Twitter':REPEAT ${3c-right-top} 0
# taller layout
layout taller 'Safari':REPEAT ${tl-main} 0
layout taller 'Google Chrome':REPEAT ${tl-main} 0
layout taller 'Terminal':REPEAT ${3c-right-bot} 0
layout taller 'MacVim':REPEAT ${tl-main} 0
layout taller 'Sublime Text 2':REPEAT ${tl-main} 0
layout taller 'Skype':REPEAT ${tl-right-top} 0
layout taller 'Transmission':REPEAT ${tl-right-bot} 0
layout taller 'Finder' ${tl-right-top} | ${tl-right-bot} 0
layout taller 'nvALT':REPEAT ${tl-right-top} 0
layout taller 'Twitter':REPEAT ${tl-right-top} 0
layout taller 'Messages':REPEAT ${tl-right-top} 0
# Push Bindings
bind h:alt ${h-left}
bind h:alt;shift ${top-l}
bind h:cmd;shift ${top-l}
bind h:alt;ctrl ${bot-l}
bind h:cmd;ctrl ${bot-l}
bind l:alt ${h-right}
bind l:alt;shift ${top-r}
bind l:cmd;shift ${top-r}
bind l:alt;ctrl ${bot-r}
bind l:cmd;ctrl ${bot-r}
#bind t:alt ${h-top}
#bind b:alt ${h-bottom}
bind m:shift;alt ${maximize}
bind 7:alt layout main
bind 8:alt layout columns
bind 9:alt layout taller
# 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
# 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:shift;cmd focus right
bind left:shift;cmd focus left
bind up:shift;cmd focus up
bind down:shift;cmd focus down
bind up:cmd;alt focus behind
bind down:cmd;alt focus behind
# Window Hints
bind p:alt hint