forked from henrypoydar/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
slate
70 lines (60 loc) · 3.49 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
# Configs
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
config secondsBetweenRepeat 0.1
config checkDefaultsOnLoad true
config focusCheckWidthMax 3000
# Monitor aliases
alias mon-laptop 1680x1050
alias mon-thunderbolt 2560x1440
alias mon-air11 1366x768
# Modal/sequence alias
alias modal-seq cmd,ctrl
# Position aliases
alias pos-mid screenOriginX+screenSizeX/8;screenOriginY+screenSizeY/8 3*screenSizeX/4;3*screenSizeY/4
alias pos-left screenOriginX;screenOriginY screenSizeX/2;screenSizeY
alias pos-right screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY
alias pos-fill screenOriginX;screenOriginY screenSizeX;screenSizeY
alias pos-left-gr screenOriginX;screenOriginY screenSizeX*.62;screenSizeY
alias pos-right-gr screenOriginX+screenSizeX*.62;screenOriginY screenSizeX*.38;screenSizeY
# Position bindings
bind m:${modal-seq} move ${pos-mid}
bind 0:${modal-seq} move ${pos-fill}
bind 6:${modal-seq} move ${pos-left}
bind 7:${modal-seq} move ${pos-right}
bind 8:${modal-seq} move ${pos-left-gr}
bind 9:${modal-seq} move ${pos-right-gr}
# Grid
bind 5:${modal-seq} grid
# Layouts
default laptop resolutions:${mon-laptop}
default air11 resolutions:${mon-air11}
default laptop-thunderbolt resolutions:${mon-laptop};${mon-thunderbolt}
layout laptop-thunderbolt 'Calendar' move ${pos-mid} ${mon-thunderbolt}
layout laptop-thunderbolt 'Google Chrome' move ${pos-mid} ${mon-thunderbolt}
layout laptop-thunderbolt 'HipChat' move ${pos-mid} ${mon-thunderbolt}
layout laptop-thunderbolt 'iTerm' move ${pos-mid} ${mon-thunderbolt}
layout laptop-thunderbolt 'MacVim' move ${pos-mid} ${mon-thunderbolt}
layout laptop-thunderbolt 'Mailplane 3' move ${pos-mid} ${mon-thunderbolt}
layout laptop-thunderbolt 'Mail' move ${pos-mid} ${mon-thunderbolt}
layout laptop-thunderbolt 'Microsoft Outlook' move ${pos-mid} ${mon-thunderbolt}
layout laptop-thunderbolt 'Things' move ${pos-mid} ${mon-thunderbolt}
layout laptop 'Calendar' move ${pos-fill} ${mon-laptop}
layout laptop 'Google Chrome' move ${pos-fill} ${mon-laptop}
layout laptop 'HipChat' move ${pos-fill} ${mon-laptop}
layout laptop 'iTerm' move ${pos-fill} ${mon-laptop}
layout laptop 'MacVim' move ${pos-fill} ${mon-laptop}
layout laptop 'Mailplane 3' move ${pos-fill} ${mon-laptop}
layout laptop 'Mail' move ${pos-fill} ${mon-laptop}
layout laptop 'Microsoft Outlook' move ${pos-fill} ${mon-laptop}
layout laptop 'Things' move ${pos-fill} ${mon-laptop}
layout air11 'Calendar' move ${pos-fill} ${mon-laptop}
layout air11 'Google Chrome' move ${pos-fill} ${mon-laptop}
layout air11 'HipChat' move ${pos-fill} ${mon-laptop}
layout air11 'iTerm' move ${pos-fill} ${mon-laptop}
layout air11 'MacVim' move ${pos-fill} ${mon-laptop}
layout air11 'Mailplane 3' move ${pos-fill} ${mon-laptop}
layout air11 'Mail' move ${pos-fill} ${mon-laptop}
layout air11 'Microsoft Outlook' move ${pos-fill} ${mon-laptop}
layout air11 'Things' move ${pos-fill} ${mon-laptop}