-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathslate
54 lines (42 loc) · 1.39 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
# common
alias showHintsLeftHand hint ASDFQWERT
dlias showNormalHint hint QWERTASDFGZXCVYUIOPHJKLBNM
alias hyper ctrl;cmd
# monitor
alias mon-main 0
alias mon-external 1
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 main move screenOriginX;screenOriginY screenSizeX;screenSizeY ${mon-main}
alias external move screenOriginX;screenOriginY screenSizeX;screenSizeY ${mon-external}
# VIM style layout
alias hyper ctrl;cmd
bind h:${hyper} ${lefthalf}
bind j:${hyper} push bottom bar-resize:screenSizeY/2
bind k:${hyper} push top bar-resize:screenSizeY/2
bind l:${hyper} ${righthalf}
bind u:${hyper} undo
# WSAD style move
alias hyper ctrl;cmd;alt
bind d:${hyper} nudge +1% +0
bind a:${hyper} nudge -1% +0
bind w:${hyper} nudge +0 -1%
bind s:${hyper} nudge +0 +1%
bind f:${hyper} ${showHintsLeftHand}
# Operator Resize
alias hyper ctrl;cmd
bind left:${hyper} resize -1% +0
bind right:${hyper} resize +1% +0
bind up:${hyper} resize +0 -1%
bind down:${hyper} resize +0 +1%
bind `:${hyper} ${full}
# Switch monitor
bind 1:${hyper} ${main}
bind 2:${hyper} ${external}
# Arrow focus
alias hyper ctrl;cmd
# bind left:${hyper} focus left
# bind down:${hyper} focus down
# bind up:${hyper} focus up
# bind right:${hyper} focus right