-
Notifications
You must be signed in to change notification settings - Fork 4
/
.slate
166 lines (144 loc) · 5.94 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
# https://github.com/jigish/slate
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
config secondsBetweenRepeat 0.1
config checkDefaultsOnLoad true
# move topx;topy sizex;sizey
alias left move screenOriginX;screenOriginY screenSizeX/2;screenSizeY
alias right move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY
alias left13 move screenOriginX;screenOriginY (screenSizeX/3)*1;screenSizeY
alias left23 move screenOriginX;screenOriginY (screenSizeX/3)*2;screenSizeY
alias left37 move screenOriginX;screenOriginY (screenSizeX/7)*3;screenSizeY
alias left34 move screenOriginX;screenOriginY (screenSizeX/4)*3;screenSizeY
alias right13 move screenOriginX+(screenSizeX/3)*2;screenOriginY screenSizeX/3;screenSizeY
alias right23 move screenOriginX+(screenSizeX/3)*1;screenOriginY (screenSizeX/3)*2;screenSizeY
alias right47 move screenOriginX+(screenSizeX/7)*3;screenOriginY (screenSizeX/7)*4;screenSizeY
alias right34 move screenOriginX+screenSizeX/4;screenOriginY (screenSizeX/4)*3;screenSizeY
alias top move screenOriginX;screenOriginY screenSizeX;screenSizeY/2
alias top34 move screenOriginX;screenOriginY screenSizeX;(screenSizeY/4)*3
alias bottom move screenOriginX;screenOriginY+screenSizeY/2 screenSizeX;screenSizeY/2
alias bottom14 move screenOriginX;screenOriginY+screenSizeY-(screenSizeY/4) screenSizeX;screenSizeY/4
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias center89 move screenOriginX+screenSizeX/36;screenOriginY (screenSizeX/18)*17;screenSizeY
alias center23 move screenOriginX+screenSizeX/6;screenOriginY (screenSizeX/3)*2;screenSizeY
alias center13 move screenOriginX+screenSizeX/3;screenOriginY screenSizeX/3;screenSizeY
alias center move screenOriginX+screenSizeX/4;screenOriginY+screenSizeY/4 screenSizeX/2;screenSizeY/2
# quarters
alias qtl move screenOriginX;screenOriginY screenSizeX/2;screenSizeY/2
alias qtlTall move screenOriginX;screenOriginY screenSizeX/2;screenSizeY/1.2
alias qtr move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY/2
alias qtrTall move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY/1.5
alias qbl move screenOriginX;screenOriginY+screenSizeY/2 screenSizeX/2;screenSizeY/2
alias qbr move screenOriginX+screenSizeX/2;screenOriginY+screenSizeY/2 screenSizeX/2;screenSizeY/2
alias emacs 'Emacs':REPEAT ${full}
alias safari 'Safari':REPEAT ${full}
alias chrome23 'Google Chrome':REPEAT ${center23}
alias chrome 'Google Chrome':REPEAT ${full}
alias firefox 'Firefox':REPEAT ${full}
alias terminal 'Terminal':REPEAT
alias preview 'Preview':REPEAT ${full}
alias slack 'Slack':REPEAT ${full}
alias discord 'Discord':REPEAT ${full}
alias activityMon 'Activity Monitor':REPEAT ${top}
alias calendar 'Calendar':REPEAT ${full}
alias signal 'Signal':REPEAT ${qtlTall}
alias messages 'Messages':REPEAT ${qtrTall}
# alias apple27 2560x1440
# alias air11 1366x768
alias lgud68p 1920x1080
alias mbpro19 2560x1600
alias lg 1
alias sm 0
## ----------------------------------------
layout slack2 ${emacs} ${lg}
layout slack2 ${safari} ${lg}
layout slack2 ${chrome} ${lg}
layout slack2 ${preview} ${lg}
layout slack2 ${activityMon} ${lg}
layout slack2 ${terminal} ${top} ${lg}
layout slack2 ${calendar} ${lg}
layout slack2 ${slack} ${sm}
layout slack2 ${discord} ${sm}
layout slack2 'Signal':REPEAT ${full} ${sm}
layout slack2 'Messages':REPEAT ${full} ${sm}
layout term2 ${emacs} ${lg}
layout term2 ${safari} ${lg}
layout term2 ${chrome} ${lg}
layout term2 ${firefox} ${lg}
layout term2 ${preview} ${lg}
layout term2 ${messages} ${lg}
layout term2 ${slack} ${lg}
layout term2 ${discord} ${lg}
layout term2 ${signal} ${lg}
layout term2 ${calendar} ${lg}
layout term2 ${activityMon} ${sm}
layout term2 ${terminal} ${bottom} ${sm}
layout deep2 ${emacs} ${lg}
layout deep2 ${safari} ${lg}
layout deep2 ${chrome} ${lg}
layout deep2 ${firefox} ${lg}
layout deep2 ${preview} ${lg}
layout deep2 ${messages} ${lg}
layout deep2 ${slack} ${lg}
layout deep2 ${discord} ${lg}
layout deep2 ${signal} ${lg}
layout deep2 ${activityMon} ${lg}
layout deep2 ${terminal} ${top} ${lg}
layout deep2 ${calendar} ${sm}
default deep2 count:2
## ----------------------------------------
layout read 'Emacs':REPEAT ${left}
layout read 'Safari':REPEAT ${right}
layout read 'Google Chrome':REPEAT ${right}
layout read 'Firefox':REPEAT ${right}
layout read 'Preview':REPEAT ${right}
layout hack 'Emacs':REPEAT ${full}
layout hack 'Safari':REPEAT ${full}
layout hack ${chrome}
layout hack 'Firefox':REPEAT ${full}
layout hack 'Preview':REPEAT ${full}
layout build 'Emacs':REPEAT ${bottom14}
layout build 'Safari':REPEAT ${top34}
layout build 'Google Chrome':REPEAT ${top34}
layout build 'Firefox':REPEAT ${top34}
layout build 'Preview':REPEAT ${top34}
# layout zoom2 'Emacs':REPEAT ${right13}
# layout zoom2 'Safari':REPEAT ${right13}
# layout zoom2 'Zoom Meeting' ${full} ${sm}
# layout zoom2 'Zoom':REPEAT ${full} ${lg}
layout pape 'Emacs':REPEAT ${left37}
layout pape 'Safari':REPEAT ${right47}
layout pape 'Google Chrome':REPEAT ${right47}
layout pape 'Firefox':REPEAT ${right47}
layout pape 'Preview':REPEAT ${right47}
bind r:ctrl,alt,cmd layout read
bind h:ctrl,alt,cmd layout hack
bind b:ctrl,alt,cmd layout build
bind p:ctrl,alt,cmd layout pape
bind s:ctrl,alt,cmd layout slack2
bind t:ctrl,alt,cmd layout term2
bind d:ctrl,alt,cmd layout deep2
# bind z:ctrl,alt,cmd layout zoom2
bind left:ctrl,alt,cmd ${left}
bind right:ctrl,alt,cmd ${right}
bind up:ctrl,alt,cmd ${top}
bind down:ctrl,alt,cmd ${bottom}
bind c:ctrl,alt,cmd ${center23}
bind v:ctrl,alt,cmd ${center13}
# bind b:ctrl,alt,cmd ${center}
bind f:ctrl,alt,cmd ${full}
bind tab:ctrl,alt,cmd throw next
bind ,:ctrl,alt,cmd ${left37}
bind .:ctrl,alt,cmd ${right47}
bind 0:ctrl,alt,cmd relaunch
bind space:ctrl,alt,cmd switch
## ----------------------------------------
## Quarters
bind 1:ctrl,alt,cmd ${qtl}
bind 2:ctrl,alt,cmd ${qtr}
bind 3:ctrl,alt,cmd ${qbl}
bind 4:ctrl,alt,cmd ${qbr}
# Local Variables:
# mode: conf-unix
# End: