-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.slate.hardlink
168 lines (114 loc) · 4.32 KB
/
.slate.hardlink
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
# Aliases
## General aliases
alias sox screenOriginX
alias soy screenOriginY
alias ssx screenSizeX
alias ssy screenSizeY
## Monitor aliases
alias laptop 1440x900;
alias external 1920x1080;
## Binding aliases
alias shiftcontrol ctrl;shift # shiftcontrol to, well, shift control
alias mash ctrl;cmd;alt # mash, for most stuff
alias hyper ctrl;alt;cmd;shift # because it was there. just for nudges and layouts.
## Misc aliases
alias showHintsLeftHand hint ASDFLKJWECUI
# Positions
## Abstract positions
alias fullsize resize ${ssx};${ssy} ${sox};${soy}
alias full move ${sox};${soy} ${ssx};${ssy}
alias wtfull move ${sox}+20;${soy} ${ssx}-35;${ssy}-5
alias topleft move ${sox};${soy} ${ssx}/2;${ssy}/2
alias topright move ${sox}+${ssx}/2;${soy} ${ssx}/2;${ssy}/2
alias bottomhalf move ${sox};${soy}+${ssy}/2 ${ssx};${ssy}/2
alias tophalf move ${sox};${soy} ${ssx};${ssy}/2
alias lefthalf move ${sox};${soy} ${ssx}/2;${ssy}
alias righthalf move ${sox}+${ssx}/2;${soy} ${ssx}/2;${ssy}
alias toprightthird move ${sox}+${ssx}-${ssx}/3;${soy} ${ssx}/3;${ssy}/2
alias topleftthird move ${sox};${soy} ${ssx}/3;${ssy}/2
alias toprighttwothird move ${sox}+${ssx}/3;${soy} ${ssx}/3*2;${ssy}/2
alias toplefttwothird move ${sox};${soy} ${ssx}/3*2;${ssy}/2
## Concrete positions (actual where on which monitor)
alias lap-full ${full} ${laptop}
alias lap-topleft ${topleft} ${laptop}
alias lap-topright ${topright} ${laptop}
alias lap-bottomhalf ${bottomhalf} ${laptop}
alias ext-full ${wtfull} ${external}
alias ext-topleft ${topleft} ${external}
alias ext-topright ${topright} ${external}
alias ext-bottomhalf ${bottomhalf} ${external}
# Layouts
layout terminal 'Terminal' ${toplefttwothird} | ${toprightthird} | ${bottomhalf}
# Binders
## Abstract position binders
### Per halfs, bound a la vim.
bind k:${mash} ${tophalf}
bind j:${mash} ${bottomhalf}
bind h:${mash} ${lefthalf}
bind l:${mash} ${righthalf}
### Top shelf, bound top shelf.
bind f:${mash} ${full}
bind y:${mash} ${wtfull}
bind q:${mash} ${topleftthird}
bind w:${mash} ${topleft}
bind e:${mash} ${toplefttwothird}
bind p:${mash} ${toprightthird}
bind o:${mash} ${topright}
bind i:${mash} ${toprighttwothird}
#bind l:${mash} chain throw next
## Size binders
bind right:${mash} resize +10% +0
bind left:${mash} resize -10% +0
bind up:${mash} resize +0 -10%
bind down:${mash} resize +0 +10%
## Nudge binders
bind right:${hyper} nudge +10% +0
bind left:${hyper} nudge -10% +0
bind up:${hyper} nudge +0 -10%
bind down:${hyper} nudge +0 +10%
## Concrete position binders
bind u:${hyper} throw ${external} ${fullsize}
bind b:${hyper} throw ${laptop} ${fullsize}
## Focus binders
bind e:${shiftcontrol} focus 'Emacs'
bind s:${shiftcontrol} focus 'Sublime Text'
bind g:${shiftcontrol} focus 'GoLand'
bind .:${shiftcontrol} focus 'GoLand'
bind w:${shiftcontrol} focus 'Atom'
bind ;:${shiftcontrol} focus 'Atom'
bind x:${shiftcontrol} focus 'Xcode'
bind v:${shiftcontrol} focus 'Code' # Visual Studio Code
bind o:${shiftcontrol} focus 'Postman'
bind z:${shiftcontrol} focus 'iTerm2'
bind t:${shiftcontrol} focus 'Terminal'
# bind a:${shiftcontrol} focus 'Safari'
bind r:${shiftcontrol} focus 'Safari'
bind a:${shiftcontrol} focus 'Google Chrome' # 'Chromium'
bind c:${shiftcontrol} focus 'Google Chrome'
bind u:${shiftcontrol} focus 'Ulysses'
bind i:${shiftcontrol} focus 'iA Writer'
bind f:${shiftcontrol} focus 'Finder'
bind m:${shiftcontrol} focus 'Messages'
bind k:${shiftcontrol} focus 'Keybase'
bind n:${shiftcontrol} focus 'iTunes'
bind d:${shiftcontrol} focus 'Discord'
bind v:${shiftcontrol} focus 'VLC'
bind p:${shiftcontrol} focus 'Photos'
bind r:${shiftcontrol} focus 'Preview'
bind f2 focus 'iTerm2'
bind f3 focus 'Google Chrome'
bind f4 focus 'Safari'
bind f5 focus 'GoLand'
bind f6 focus 'Atom'
bind f7 focus 'Sublime Text'
# bind f8 focus 'Xcode'
bind f8 focus 'Code'
bind f9 focus 'Keybase'
bind f10 focus 'Messages'
bind f11 focus 'Discord'
bind f12 focus 'Gitter'
## Layout binders
## Grid binders
bind g:${mash} grid padding:5 0:6,3 1:8,3
# Window hints
bind `:cmd ${showHintsLeftHand}