forked from ryanb/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 2
/
slate
79 lines (69 loc) · 3.17 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
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Resize Bindings
# bind right:alt resize +10% +0
# bind left:alt resize -10% +0
# bind up:alt resize +0 -10%
# bind down:alt resize +0 +10%
# bind right:ctrl;alt resize -10% +0 bottom-right
# bind left:ctrl;alt resize +10% +0 bottom-right
# bind up:ctrl;alt resize +0 +10% bottom-right
# bind down:ctrl;alt resize +0 -10% bottom-right
# Push Bindings
# bind right:ctrl;cmd push right bar-resize:screenSizeX/3
# bind left:ctrl;cmd push left bar-resize:screenSizeX/3
# bind up:ctrl;cmd push up bar-resize:screenSizeY/2
# bind down:ctrl;cmd push down bar-resize:screenSizeY/2
# Nudge Bindings -- move window around
# bind right:shift;alt nudge +10% +0
# bind left:shift;alt nudge -10% +0
# bind up:shift;alt nudge +0 -10%
# bind down:shift;alt nudge +0 +10%
# Throw Bindings -- switch screen display
# bind 1:ctrl;alt throw 0 resize
# bind 2:ctrl;alt throw 1 resize
# bind 3:ctrl;alt throw 2 resize
# bind right:ctrl;alt throw right resize
# bind left:ctrl;alt throw left resize
# bind up:ctrl;alt throw up resize
# bind down:ctrl;alt throw down resize
bind pad0:ctrl;alt throw left resize
bind pad.:ctrl;alt throw right resize
bind -:ctrl;alt throw left resize
bind =:ctrl;alt throw right resize
# Focus Bindings
bind pad6:cmd;alt focus right
bind pad4:cmd;alt focus left
bind pad8:cmd;alt focus up
bind pad2:cmd;alt focus down
bind up:cmd;alt focus behind
bind down:cmd;alt focus behind
bind v:cmd;alt focus 'MacVim'
bind c:cmd;alt focus 'Google Chrome'
bind t:cmd;alt focus 'iTerm'
bind f:cmd;alt focus 'Finder'
# Window Hints
bind esc:cmd hint
# Unity-style Bindings
alias center move screenOriginX+screenSizeX/2-windowSizeX/2;screenOriginY+screenSizeY/2-windowSizeY/2 windowSizeX;windowSizeY
bind 1:ctrl;alt corner bottom-left resize:screenSizeX/2;screenSizeY/2
bind 2:ctrl;alt push bottom bar-resize:screenSizeY/2
bind 3:ctrl;alt corner bottom-right resize:screenSizeX/2;screenSizeY/2
bind 4:ctrl;alt push left bar-resize:screenSizeX/2
bind 5:ctrl;alt push top bar-resize:screenSizeY
bind 6:ctrl;alt push right bar-resize:screenSizeX/2
bind 7:ctrl;alt corner top-left resize:screenSizeX/2;screenSizeY/2
bind 8:ctrl;alt push top bar-resize:screenSizeY/2
bind 9:ctrl;alt corner top-right resize:screenSizeX/2;screenSizeY/2
bind /:ctrl;alt move screenSizeX/4+screenOriginX;0 screenSizeX/2;screenSizeY
bind pad1:ctrl;alt corner bottom-left resize:screenSizeX/2;screenSizeY/2
bind pad2:ctrl;alt push bottom bar-resize:screenSizeY/2
bind pad3:ctrl;alt corner bottom-right resize:screenSizeX/2;screenSizeY/2
bind pad4:ctrl;alt push left bar-resize:screenSizeX/2
bind pad5:ctrl;alt push top bar-resize:screenSizeY
bind pad6:ctrl;alt push right bar-resize:screenSizeX/2
bind pad7:ctrl;alt corner top-left resize:screenSizeX/2;screenSizeY/2
bind pad8:ctrl;alt push top bar-resize:screenSizeY/2
bind pad9:ctrl;alt corner top-right resize:screenSizeX/2;screenSizeY/2
bind pad/:ctrl;alt move screenSizeX/4+screenOriginX;0 screenSizeX/2;screenSizeY