-
Notifications
You must be signed in to change notification settings - Fork 0
/
.slate
249 lines (220 loc) · 21.5 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
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
# Configuration file for Slate
# https://github.com/jigish/slate
# https://blog.mikecordell.com/2014/05/25/getting-started-with-slate.html
# Configs
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
config secondsBetweenRepeat 0.1
config checkDefaultsOnLoad true
config focusCheckWidthMax 3000
# Monitor Aliases
alias m-left 0
alias m-right 1
alias m-90 2
# Position Aliases
alias quarter 0.25
alias third 0.4
alias half 0.5
alias twothirds 0.6
alias threequarters 0.75
alias fat 0.8
alias nearfull 0.95
alias left-third move screenOriginX;screenOriginY screenSizeX*${third};screenSizeY
alias left-half move screenOriginX;screenOriginY screenSizeX*${half};screenSizeY
alias left-twothirds move screenOriginX;screenOriginY screenSizeX*${twothirds};screenSizeY
alias left-twothirds-2 move screenOriginX+50;screenOriginY screenSizeX*${twothirds};screenSizeY
alias left-twothirds-3 move screenOriginX+100;screenOriginY screenSizeX*${twothirds};screenSizeY
alias left-twothirds-4 move screenOriginX+150;screenOriginY screenSizeX*${twothirds};screenSizeY
alias left-twothirds-5 move screenOriginX+200;screenOriginY screenSizeX*${twothirds};screenSizeY
alias left-threequarters move screenOriginX;screenOriginY screenSizeX*${threequarters};screenSizeY
alias left-threequarters-2 move screenOriginX+50;screenOriginY screenSizeX*${threequarters};screenSizeY
alias left-threequarters-3 move screenOriginX+100;screenOriginY screenSizeX*${threequarters};screenSizeY
alias left-threequarters-4 move screenOriginX+150;screenOriginY screenSizeX*${threequarters};screenSizeY
alias left-fat move screenOriginX;screenOriginY screenSizeX*${fat};screenSizeY
alias left-fat-2 move screenOriginX+40;screenOriginY screenSizeX*${fat};screenSizeY
alias left-fat-3 move screenOriginX+80;screenOriginY screenSizeX*${fat};screenSizeY
alias left-fat-4 move screenOriginX+120;screenOriginY screenSizeX*${fat};screenSizeY
alias left-fat-5 move screenOriginX+160;screenOriginY screenSizeX*${fat};screenSizeY
alias left-fat-6 move screenOriginX+200;screenOriginY screenSizeX*${fat};screenSizeY
alias left-fat-7 move screenOriginX+240;screenOriginY screenSizeX*${fat};screenSizeY
alias left-fat-8 move screenOriginX+280;screenOriginY screenSizeX*${fat};screenSizeY
alias left-fat-9 move screenOriginX+320;screenOriginY screenSizeX*${fat};screenSizeY
alias left-fat-10 move screenOriginX+360;screenOriginY screenSizeX*${fat};screenSizeY
alias left-fat-11 move screenOriginX+400;screenOriginY screenSizeX*${fat};screenSizeY
alias left-fat-12 move screenOriginX+440;screenOriginY screenSizeX*${fat};screenSizeY
alias left-nearfull move screenOriginX;screenOriginY screenSizeX*${nearfull};screenSizeY
alias left-nearfull-2 move screenOriginX+40;screenOriginY screenSizeX*${nearfull};screenSizeY
alias left-nearfull-3 move screenOriginX+80;screenOriginY screenSizeX*${nearfull};screenSizeY
alias left-nearfull-4 move screenOriginX+160;screenOriginY screenSizeX*${nearfull};screenSizeY
alias left-full-1 move screenOriginX;screenOriginY screenSizeX-50;screenSizeY
alias left-full-2 move screenOriginX;screenOriginY screenSizeX-100;screenSizeY
alias left-full-3 move screenOriginX;screenOriginY screenSizeX-150;screenSizeY
alias center-third move screenOriginX+screenSizeX*(1-${third})/2;screenOriginY screenSizeX*${third};screenSizeY
alias center-half move screenOriginX+screenSizeX*(1-${half})/2;screenOriginY screenSizeX*${half};screenSizeY
alias center-twothirds move screenOriginX+screenSizeX*(1-${twothirds})/2;screenOriginY screenSizeX*${twothirds};screenSizeY
alias center-fat move screenOriginX+screenSizeX*(1-${fat})/2;screenOriginY screenSizeX*${fat};screenSizeY
alias center-fat-2 move screenOriginX-50+screenSizeX*(1-${fat})/2;screenOriginY screenSizeX*${fat};screenSizeY
alias center-fat-3 move screenOriginX-100+screenSizeX*(1-${fat})/2;screenOriginY screenSizeX*${fat};screenSizeY
alias center-fat-4 move screenOriginX-150+screenSizeX*(1-${fat})/2;screenOriginY screenSizeX*${fat};screenSizeY
alias center-fat-5 move screenOriginX-200+screenSizeX*(1-${fat})/2;screenOriginY screenSizeX*${fat};screenSizeY
alias center-fat-6 move screenOriginX-250+screenSizeX*(1-${fat})/2;screenOriginY screenSizeX*${fat};screenSizeY
alias center-nearfull move screenOriginX+screenSizeX*(1-${nearfull})/2;screenOriginY screenSizeX*${nearfull};screenSizeY
alias center-nearfull-2 move screenOriginX-50+screenSizeX*(1-${nearfull})/2;screenOriginY screenSizeX*${nearfull};screenSizeY
alias center-nearfull-3 move screenOriginX-100+screenSizeX*(1-${nearfull})/2;screenOriginY screenSizeX*${nearfull};screenSizeY
alias center-nearfull-4 move screenOriginX-150+screenSizeX*(1-${nearfull})/2;screenOriginY screenSizeX*${nearfull};screenSizeY
alias center-nearfull-5 move screenOriginX-200+screenSizeX*(1-${nearfull})/2;screenOriginY screenSizeX*${nearfull};screenSizeY
alias center-nearfull-6 move screenOriginX-250+screenSizeX*(1-${nearfull})/2;screenOriginY screenSizeX*${nearfull};screenSizeY
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias right-quarter move screenOriginX+screenSizeX*(1-${quarter});screenOriginY screenSizeX*${quarter};screenSizeY
alias right-third move screenOriginX+screenSizeX*(1-${third});screenOriginY screenSizeX*${third};screenSizeY
alias right-third-2 move screenOriginX+screenSizeX*(1-${third});screenOriginY screenSizeX*${third}-50;screenSizeY
alias right-half move screenOriginX+screenSizeX*(1-${half});screenOriginY screenSizeX*${half};screenSizeY
alias right-half-2 move screenOriginX-50+screenSizeX*(1-${half});screenOriginY screenSizeX*${half};screenSizeY
alias right-twothirds move screenOriginX+screenSizeX*(1-${twothirds});screenOriginY screenSizeX*${twothirds};screenSizeY
alias right-twothirds-2 move screenOriginX-50+screenSizeX*(1-${twothirds});screenOriginY screenSizeX*${twothirds};screenSizeY
alias right-twothirds-3 move screenOriginX-100+screenSizeX*(1-${twothirds});screenOriginY screenSizeX*${twothirds};screenSizeY
alias right-twothirds-4 move screenOriginX-150+screenSizeX*(1-${twothirds});screenOriginY screenSizeX*${twothirds};screenSizeY
alias right-twothirds-5 move screenOriginX-200+screenSizeX*(1-${twothirds});screenOriginY screenSizeX*${twothirds};screenSizeY
alias right-twothirds-6 move screenOriginX-250+screenSizeX*(1-${twothirds});screenOriginY screenSizeX*${twothirds};screenSizeY
alias right-threequarters move screenOriginX+screenSizeX*(1-${threequarters});screenOriginY screenSizeX*${threequarters};screenSizeY
alias right-fat move screenOriginX+screenSizeX*(1-${fat});screenOriginY screenSizeX*${fat};screenSizeY
alias right-fat-2 move screenOriginX-50+screenSizeX*(1-${fat});screenOriginY screenSizeX*${fat}-50;screenSizeY
alias right-fat-3 move screenOriginX-100+screenSizeX*(1-${fat});screenOriginY screenSizeX*${fat}-100;screenSizeY
alias right-fat-4 move screenOriginX-150+screenSizeX*(1-${fat});screenOriginY screenSizeX*${fat}-150;screenSizeY
alias right-fat-5 move screenOriginX-200+screenSizeX*(1-${fat});screenOriginY screenSizeX*${fat}-200;screenSizeY
alias right-nearfull move screenOriginX+screenSizeX*(1-${nearfull});screenOriginY screenSizeX*${nearfull};screenSizeY
alias right-nearfull-2 move screenOriginX-50+screenSizeX*(1-${nearfull});screenOriginY screenSizeX*${nearfull};screenSizeY
alias right-nearfull-3 move screenOriginX-100+screenSizeX*(1-${nearfull});screenOriginY screenSizeX*${nearfull};screenSizeY
alias right-nearfull-4 move screenOriginX-150+screenSizeX*(1-${nearfull});screenOriginY screenSizeX*${nearfull};screenSizeY
alias right-nearfull-5 move screenOriginX-200+screenSizeX*(1-${nearfull});screenOriginY screenSizeX*${nearfull};screenSizeY
alias right-nearfull-6 move screenOriginX-250+screenSizeX*(1-${nearfull});screenOriginY screenSizeX*${nearfull};screenSizeY
alias right-full-1 move screenOriginX+50;screenOriginY screenSizeX-50;screenSizeY
alias right-full-2 move screenOriginX+100;screenOriginY screenSizeX-100;screenSizeY
alias right-full-3 move screenOriginX+150;screenOriginY screenSizeX-150;screenSizeY
####
# Montior Layouts
# flying solo (one display)
layout laptop 'Todoist':REPEAT ${left-half}
layout laptop 'Slack' ${left-fat-2}
layout laptop 'Google Chat' ${left-fat-2}
layout laptop 'Google Chrome':REPEAT ${left-fat-3} | ${left-fat-4} | ${left-fat-5} | ${left-fat-6} | ${left-fat-7} | ${left-fat-8}
layout laptop 'Zoom' ${center-fat}
layout laptop 'Google Meet' ${center-fat}
layout laptop 'Google Calendar' ${center-fat}
layout laptop 'My Devs' ${right-nearfull}
layout laptop 'Lattice' ${right-nearfull}
layout laptop 'Code':REPEAT ${right-nearfull} | ${right-nearfull-2} | ${right-nearfull-3} | ${left-nearfull}
layout laptop 'Cursor':REPEAT ${right-nearfull} | ${right-nearfull-2} | ${right-nearfull-3} | ${left-nearfull}
layout laptop 'iTerm2':REPEAT ${right-nearfull}
layout laptop 'Notion':REPEAT ${right-nearfull} | ${right-nearfull-2} | ${right-nearfull-3} | ${left-nearfull} | ${right-fat} | ${right-fat-2} | ${right-fat-3} | ${right-fat-4}
layout laptop 'Vendor Conversations Log' ${left-fat-3}
layout laptop 'Vendor and Tool Catalog - Product-org' ${left-fat}
layout laptop 'Projects Tooling and Optimization' ${left-fat-2}
layout laptop 'Portfolio Teams' ${right-third}
layout laptop 'bob' ${right-third}
layout laptop 'Spotify':REPEAT ${right-fat}
layout laptop 'Finder' ${right-fat}
layout laptop 'xMatters' ${right-threequarters}
layout laptop 'BSF' ${right-threequarters}
layout laptop 'Spotify':REPEAT ${right-twothirds}
layout laptop 'ChatGPT' ${right-twothirds}
layout laptop 'Claude' ${right-twothirds}
layout laptop 'Sequel Pro':REPEAT ${right-half}
layout laptop 'Activity Monitor' ${right-third}
# "main" screen is the external one, and right of the laptop
layout laptop-*ext 'Spotify':REPEAT ${right-fat} ${m-left}
layout laptop-*ext 'Activity Monitor' ${right-quarter} ${m-left}
layout laptop-*ext 'Sequel Pro':REPEAT ${right-half} ${m-left}
layout laptop-*ext 'Slack' ${left-threequarters} ${m-left}
layout laptop-*ext 'Zoom' ${full} ${m-left}
layout laptop-*ext 'qemu-system-x86_64' ${right-third} ${m-left}
layout laptop-*ext 'Simulator' ${center-third} ${m-left}
layout laptop-*ext 'Sublime Text':REPEAT ${left-threequarters} ${m-right} | ${left-threequarters-2} ${m-right} | ${left-threequarters-3} ${m-right} | ${left-threequarters-4} ${m-right}
layout laptop-*ext 'Code':REPEAT ${left-threequarters} ${m-right} | ${left-threequarters-2} ${m-right} | ${left-threequarters-3} ${m-right} | ${left-threequarters-4} ${m-right}
layout laptop-*ext 'Cursor':REPEAT ${left-threequarters} ${m-right} | ${left-threequarters-2} ${m-right} | ${left-threequarters-3} ${m-right} | ${left-threequarters-4} ${m-right}
layout laptop-*ext 'Android Studio' ${left-threequarters} ${m-right}
layout laptop-*ext 'iTerm2':REPEAT ${right-quarter} ${m-right}
layout laptop-*ext 'Google Chrome':REPEAT_LAST ${left-threequarters} ${m-right} | ${left-threequarters-2} ${m-right} | ${left-threequarters-3} ${m-right} | ${left-threequarters-4} ${m-right}
layout laptop-*ext 'Google Chat' ${right-half} ${m-right}
layout laptop-*ext 'Finder' ${right-fat} ${m-right}
layout laptop-*ext 'Todoist':REPEAT ${right-half-2} ${m-right}
layout laptop-*ext 'Notion' ${right-nearfull} ${m-right} | ${right-nearfull-2} ${m-right} | ${right-nearfull-3} ${m-right} | ${right-nearfull-4} ${m-right}
layout laptop-*ext 'BSF' ${left-threequarters} ${m-right} | ${left-threequarters-2} ${m-right}
layout laptop-*ext 'ChatGPT' ${center-third} ${m-right}
layout laptop-*ext 'Claude' ${center-third} ${m-right}
# "main" screen is the laptop", and there's an external to the right
layout *laptop-ext 'Spotify':REPEAT ${right-fat} ${m-right}
layout *laptop-ext 'Activity Monitor' ${right-quarter} ${m-right}
layout *laptop-ext 'Sequel Pro':REPEAT ${right-half} ${m-right}
layout *laptop-ext 'Slack' ${left-threequarters} ${m-right}
layout *laptop-ext 'Zoom' ${full} ${m-right}
layout *laptop-ext 'qemu-system-x86_64' ${right-third} ${m-right}
layout *laptop-ext 'Simulator' ${center-third} ${m-right}
layout *laptop-ext 'Sublime Text':REPEAT ${left-threequarters} ${m-left} | ${left-threequarters-2} ${m-left} | ${left-threequarters-3} ${m-left} | ${left-threequarters-4} ${m-left}
layout *laptop-ext 'Code':REPEAT ${left-threequarters} ${m-left} | ${left-threequarters-2} ${m-left} | ${left-threequarters-3} ${m-left} | ${left-threequarters-4} ${m-left}
layout *laptop-ext 'Cursor':REPEAT ${left-threequarters} ${m-left} | ${left-threequarters-2} ${m-left} | ${left-threequarters-3} ${m-left} | ${left-threequarters-4} ${m-left}
layout *laptop-ext 'Android Studio' ${left-threequarters} ${m-left}
layout *laptop-ext 'iTerm2':REPEAT ${right-quarter} ${m-left}
layout *laptop-ext 'Google Chrome':REPEAT_LAST ${left-threequarters} ${m-left} | ${left-threequarters-2} ${m-left} | ${left-threequarters-3} ${m-left} | ${left-threequarters-4} ${m-left}
layout *laptop-ext 'Google Chat' ${right-half} ${m-left}
layout *laptop-ext 'Finder' ${right-fat} ${m-left}
layout *laptop-ext 'Todoist':REPEAT ${right-half-2} ${m-left}
layout *laptop-ext 'Notion' ${right-nearfull} ${m-left} | ${right-nearfull-2} ${m-left} | ${right-nearfull-3} ${m-left} | ${right-nearfull-4} ${m-left}
layout *laptop-ext 'BSF' ${left-threequarters} ${m-left} | ${left-threequarters-2} ${m-left}
layout *laptop-ext 'ChatGPT' ${center-third} ${m-left}
layout *laptop-ext 'Claude' ${center-third} ${m-left}
# (3 monitors) Home-office setup
layout laptop-*ext-90 'zoom.us' ${left-nearfull} ${m-left} | ${right-nearfull} ${m-left}
layout laptop-*ext-90 'Google Meet' ${full} ${m-left}
layout laptop-*ext-90 'Spotify':REPEAT ${left-fat} ${m-left}
layout laptop-*ext-90 'Whitenoise' move screenOriginX;screenOriginY screenSizeX*${fat};screenSizeY*${half} ${m-left}
layout laptop-*ext-90 'Projects Tooling and Optimization' ${left-fat-2} ${m-left}
layout laptop-*ext-90 'Activity Monitor' ${right-twothirds} ${m-left}
layout laptop-*ext-90 'Finder' ${right-fat} ${m-left} | ${right-fat-2} ${m-left} | ${right-fat-3} ${m-left} | ${right-fat-4} ${m-left} | ${right-fat-5} ${m-left}
layout laptop-*ext-90 'Postman' ${right-nearfull} ${m-left}
layout laptop-*ext-90 'qemu-system-x86_64' ${right-third} ${m-left}
layout laptop-*ext-90 'Simulator' ${center-third} ${m-left}
layout laptop-*ext-90 'Sequel Pro':REPEAT ${right-half} ${m-left}
layout laptop-*ext-90 'Sublime Text':REPEAT ${center-nearfull} ${m-right} | ${center-nearfull-2} ${m-right} | ${center-nearfull-3} ${m-right}
layout laptop-*ext-90 'Code':REPEAT ${left-full-1} ${m-right} | ${left-full-2} ${m-right} | ${left-full-3} ${m-right}
layout laptop-*ext-90 'Cursor':REPEAT ${left-full-1} ${m-right} | ${left-full-2} ${m-right} | ${left-full-3} ${m-right}
layout laptop-*ext-90 'Google Chrome':REPEAT ${left-fat} ${m-right} | ${left-fat-2} ${m-right} | ${left-fat-3} ${m-right} | ${left-fat-4} ${m-right} | ${left-fat-5} ${m-right} | ${left-fat-6} ${m-right} | ${left-fat-7} ${m-right} | ${left-fat-8} ${m-right} | ${left-fat-9} ${m-right} | ${left-fat-10} ${m-right} | ${left-fat-11} ${m-right} | ${left-fat-12} ${m-right}
layout laptop-*ext-90 'Linear' ${center-nearfull} ${m-right}
layout laptop-*ext-90 'Notion' ${left-fat} ${m-right} | ${left-fat-2} ${m-right} | ${left-fat-3} ${m-right} | ${left-fat-4} ${m-right} | ${left-fat-5} ${m-right} | ${left-fat-6} ${m-right} | ${left-fat-7} ${m-right} | ${left-fat-8} ${m-right} | ${left-fat-9} ${m-right}
layout laptop-*ext-90 'Vendor Conversations Log' ${left-fat-3} ${m-right}
layout laptop-*ext-90 'Vendor and Tool Catalog - Product-org' ${left-fat} ${m-right}
layout laptop-*ext-90 'Portfolio Teams' ${right-third} ${m-right}
layout laptop-*ext-90 'bob' ${right-third} ${m-right}
layout laptop-*ext-90 'Android Studio' ${right-full-1} ${m-right} | ${right-full-2} ${m-right}
layout laptop-*ext-90 'Xcode' ${center-nearfull} ${m-right} | ${center-nearfull-2} ${m-right}
layout laptop-*ext-90 'BSF' ${right-nearfull} ${m-right} | ${right-nearfull-2} ${m-right}
layout laptop-*ext-90 'Incident Log' ${center-nearfull} ${m-right}
layout laptop-*ext-90 'Culture Amp' ${center-nearfull} ${m-right}
layout laptop-*ext-90 'Lattice' ${left-twothirds} ${m-right} | ${left-twothirds-2} ${m-right} | ${left-twothirds-3} ${m-right} | ${left-twothirds-4} ${m-right} | ${left-twothirds-5} ${m-right}
layout laptop-*ext-90 'My Devs' ${right-twothirds} ${m-right} | ${right-twothirds-2} ${m-right} | ${right-twothirds-3} ${m-right} | ${right-twothirds-4} ${m-right} | ${right-twothirds-5} ${m-right} | ${right-twothirds-6} ${m-right}
layout laptop-*ext-90 'Discovery' ${center-nearfull} ${m-right}
layout laptop-*ext-90 'Google Calendar' ${right-threequarters} ${m-right}
layout laptop-*ext-90 'xMatters' ${right-threequarters} ${m-right}
layout laptop-*ext-90 'ChatGPT' ${right-twothirds} ${m-right}
layout laptop-*ext-90 'Claude' ${right-twothirds} ${m-right}
layout laptop-*ext-90 'iTerm2':REPEAT ${full} ${m-90}
layout laptop-*ext-90 'Google Chat' ${full} ${m-90}
layout laptop-*ext-90 'Todoist' ${left-nearfull} ${m-90}
layout laptop-*ext-90 'Slack' ${right-nearfull} ${m-90}
# Default Layouts
default laptop-*ext resolutions:${m-right};${m-left};
# Bind
bind 1:alt;cmd layout laptop
bind 2:alt;cmd layout laptop-*ext # "main" screen is the external one, and right of the laptop
bind 2:alt;cmd;shift layout *laptop-ext # "main" screen is the laptop (external on right)
bind 3:alt;cmd layout laptop-*ext-90 # From left to right: laptop, main external, 90 degree orientation external
bind s:alt;cmd focus 'Sublime Text'
bind t:alt;cmd focus 'iTerm2'
bind c:alt;cmd focus 'Google Chrome'
bind right:alt;cmd chain ${right-half} | ${right-twothirds} | ${right-fat} | ${right-nearfull} | chain ${right-third}
bind left:alt;cmd chain ${left-half} | ${left-twothirds} | ${left-fat} | ${left-nearfull} | chain ${left-third}
bind up:alt;cmd chain ${center-half} | ${center-twothirds} | ${center-fat} | ${center-nearfull} | ${full}
bind down:alt;cmd throw next
bind right:alt;shift;cmd nudge +50 +0
bind left:alt;shift;cmd nudge -50 +0