-
Notifications
You must be signed in to change notification settings - Fork 0
/
.slate
204 lines (182 loc) · 8.02 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
# __ _
# / _| (_)
# ___ ___ _ __ | |_ _ __ _
# / __| / _ \ | '_ \ | _| | | / _` |
# | (__ | (_) | | | | | | | | | | (_| |
# \___| \___/ |_| |_| |_| |_| \__, |
# __/ |
# |___/
#
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# _ _
# | | (_)
# __ _ | | _ __ _ ___ ___ ___
# / _` | | | | | / _` | / __| / _ \ / __|
# | (_| | | | | | | (_| | \__ \ | __/ \__ \
# \__,_| |_| |_| \__,_| |___/ \___| |___/
#
#
# Monitor Aliases
alias laptop 0
alias display 1
# Abstract positions
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY
alias righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY
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 threequarter move screenOriginX;screenOriginY screenSizeX/1.14;screenSizeY
#concrete positions for laptop layout
alias 1-full move screenOriginX;screenOriginY screenSizeX;screenSizeY ${laptop}
alias 1-lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY ${laptop}
alias 1-righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY ${laptop}
alias 1-topleft corner top-left resize:screenSizeX/2;screenSizeY/2 ${laptop}
alias 1-topright corner top-right resize:screenSizeX/2;screenSizeY/2 ${laptop}
alias 1-bottomleft corner bottom-left resize:screenSizeX/2;screenSizeY/2 ${laptop}
alias 1-bottomright corner bottom-right resize:screenSizeX/2;screenSizeY/2 ${laptop}
alias 1-threequarter move screenOriginX;screenOriginY screenSizeX/1.14;screenSizeY ${laptop}
#concrete positions for display layout
alias 2-full move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias 2-lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY ${display}
alias 2-righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY ${display}
alias 2-topleft corner top-left resize:screenSizeX/2;screenSizeY/2 ${display}
alias 2-topright corner top-right resize:screenSizeX/2;screenSizeY/2 ${display}
alias 2-bottomleft corner bottom-left resize:screenSizeX/2;screenSizeY/2 ${display}
alias 2-bottomright corner bottom-right resize:screenSizeX/2;screenSizeY/2 ${display}
alias 2-threequarter move screenOriginX;screenOriginY screenSizeX/1.14;screenSizeY ${display}
#
# _ _ _ _
# | | (_) | | (_)
# | |__ _ _ __ __| | _ _ __ __ _ ___
# | '_ \ | | | '_ \ / _` | | | | '_ \ / _` | / __|
# | |_) | | | | | | | | (_| | | | | | | | | (_| | \__ \
# |_.__/ |_| |_| |_| \__,_| |_| |_| |_| \__, | |___/
# __/ |
# |___/
# Resize Bindings
bind right:ctrl;alt;cmd resize +10% +0
bind left:ctrl;alt;cmd resize -10% +0
bind up:ctrl;alt;cmd resize +0 -10%
bind down:ctrl;alt;cmd resize +0 +10%
# Throw Bindings
bind right:shift;alt;cmd throw right
bind left:shift;alt;cmd throw left
# Position Bindings
bind ;:ctrl;alt;cmd ${lefthalf}
bind ':ctrl;alt;cmd ${righthalf}
bind return:ctrl;alt;cmd ${threequarter}
bind f:ctrl;alt;cmd ${full}
#
# _ _
# | | | |
# | | __ _ _ _ ___ _ _ | |_ ___
# | | / _` | | | | | / _ \ | | | | | __| / __|
# | | | (_| | | |_| | | (_) | | |_| | | |_ \__ \
# |_| \__,_| \__, | \___/ \__,_| \__| |___/
# __/ |
# |___/
# laptop layout
layout laptop 'Atom':REPEAT ${threequarter}
layout laptop 'Clear':REPEAT ${lefthalf}
layout laptop 'CodeKit':REPEAT ${lefthalf}
layout laptop 'Firefox':MAIN_FIRST ${threequarter} | ${lefthalf}
layout laptop 'Google Chrome':MAIN_FIRST ${threequarter} | ${lefthalf}
layout laptop 'Google Chrome Canary':MAIN_FIRST ${threequarter} | ${lefthalf}
layout laptop 'HipChat':REPEAT ${lefthalf}
layout laptop 'iCal':REPEAT ${threequarter}
layout laptop 'Mail':REPEAT ${threequarter}
layout laptop 'Messages':REPEAT ${lefthalf}
layout laptop 'Mixture':REPEAT ${lefthalf}
layout laptop 'nvALT':REPEAT ${threequarter}
layout laptop 'Preview':REPEAT ${threequarter}
layout laptop 'Propane':REPEAT ${lefthalf}
layout laptop 'Safari':MAIN_FIRST ${threequarter} | ${lefthalf}
layout laptop 'Sublime Text 2':REPEAT ${threequarter}
layout laptop 'Terminal':REPEAT ${threequarter}
layout laptop 'Transmit':REPEAT ${lefthalf}
layout laptop 'Tweetbot':REPEAT ${lefthalf}
# laptopfullscreen layout
layout laptopfullscreen 'Atom':REPEAT ${full}
layout laptopfullscreen 'Clear':REPEAT ${lefthalf}
layout laptopfullscreen 'CodeKit':REPEAT ${lefthalf}
layout laptopfullscreen 'Firefox':MAIN_FIRST ${full} | ${lefthalf}
layout laptopfullscreen 'Google Chrome':MAIN_FIRST ${full} | ${lefthalf}
layout laptopfullscreen 'Google Chrome Canary':MAIN_FIRST ${full} | ${lefthalf}
layout laptopfullscreen 'HipChat':REPEAT ${lefthalf}
layout laptopfullscreen 'iCal':REPEAT ${threequarter}
layout laptopfullscreen 'Mail':REPEAT ${threequarter}
layout laptopfullscreen 'Messages':REPEAT ${lefthalf}
layout laptopfullscreen 'Mixture':REPEAT ${lefthalf}
layout laptopfullscreen 'nvALT':REPEAT ${threequarter}
layout laptopfullscreen 'Preview':REPEAT ${threequarter}
layout laptopfullscreen 'Propane':REPEAT ${lefthalf}
layout laptopfullscreen 'Safari':MAIN_FIRST ${full} | ${lefthalf}
layout laptopfullscreen 'Sublime Text 2':REPEAT ${full}
layout laptopfullscreen 'Terminal':REPEAT ${threequarter}
layout laptopfullscreen 'Transmit':REPEAT ${lefthalf}
layout laptopfullscreen 'Tweetbot':REPEAT ${lefthalf}
# display layout
layout display 'Atom':REPEAT ${2-threequarter}
layout display 'Clear':REPEAT ${1-righthalf}
layout display 'CodeKit':REPEAT ${2-lefthalf}
layout display 'Firefox':MAIN_FIRST ${2-threequarter} | ${1-righthalf}
layout display 'Google Chrome':MAIN_FIRST ${2-threequarter} | ${1-righthalf}
layout display 'Google Chrome Canary':MAIN_FIRST ${2-threequarter} | ${1-righthalf}
layout display 'HipChat':REPEAT ${1-lefthalf}
layout display 'iCal':REPEAT ${1-full}
layout display 'Mail':REPEAT ${1-full}
layout display 'Mixture':REPEAT ${2-lefthalf}
layout display 'Messages':REPEAT ${1-righthalf}
layout display 'nvALT':REPEAT ${2-threequarter}
layout display 'Preview':REPEAT ${2-threequarter}
layout display 'Propane':REPEAT ${1-righthalf}
layout display 'Safari':MAIN_FIRST ${2-threequarter} | ${1-righthalf}
layout display 'Sublime Text 2':REPEAT ${2-threequarter}
layout display 'Terminal':REPEAT ${2-threequarter}
layout display 'Transmit':REPEAT ${2-lefthalf}
layout display 'Tweetbot':REPEAT ${1-lefthalf}
bind 1:ctrl;alt;cmd layout laptop
bind 2:ctrl;alt;cmd layout display
bind 3:ctrl;alt;cmd layout laptopfullscreen
# _ _
# (_) | |
# __ _ _ __ _ __| |
# / _` | | '__| | | / _` |
# | (_| | | | | | | (_| |
# \__, | |_| |_| \__,_|
# __/ |
# |___/
#
bind g:ctrl;alt;cmd grid padding:5 1680x1050:16,9 1050x1680:9,16
# _ _ _
# | | (_) | |
# | |__ _ _ __ | |_ ___
# | '_ \ | | | '_ \ | __| / __|
# | | | | | | | | | | | |_ \__ \
# |_| |_| |_| |_| |_| \__| |___/
#
config windowHintsFontColor 0;0;0;1.0
config windowHintsFontSize 100
config windowHintsDuration 6
config windowHintsSpread true
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
bind esc:cmd hint 1234567890
bind h:ctrl;alt;cmd hint 1234567890
# _ _ _
# (_) | | | |
# ___ __ __ _ | |_ ___ | |__
# / __| \ \ /\ / / | | | __| / __| | '_ \
# \__ \ \ V V / | | | |_ | (__ | | | |
# |___/ \_/\_/ |_| \__| \___| |_| |_|
#
#
#
#switch is commented out until :hover works
#config switchShowTitles true
#bind tab:cmd switch