forked from mathiasbynens/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.slate
55 lines (45 loc) · 1.81 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
# SLATE CONFIG
config defaultToCurrentScreen true
config secondsBeforeRepeat 0.4
config secondsBetweenRepeat 0.1
config keyboardLayout "qwerty"
config nudgePercentOf screenSize
config resizePercentOf screenSize
# button alias - hyper is fn+ctrl
alias hyper fn;ctrl
# quick focus alias
alias browser 'Google Chrome'
alias editor 'Sublime Text'
# Shows app icons and background apps, spreads icons in the same place.
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows true
config windowHintsSpread true
# Abstract positions definitions
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 tophalf move screenOriginX;screenOriginY screenSizeX;screenSizeY/2
alias bottomhalf move screenOriginX;screenOriginY+screenSizeY/2 screenSizeX;screenSizeY/2
# Custom Layout
layout 1monitor 'Sublime Text':REPEAT ${full}
layout 1monitor 'iTunes':REPEAT ${full}
layout 1monitor 'Google Chrome':REPEAT ${full}
# bindings
bind p:${hyper} layout 1monitor
#bind b:${hyper} focus ${browser}
#bind e:${hyper} focus ${editor}
# Grid Padding 6x2 on monitor 0 and 8x3 on monitor 1
#bind g:${hyper} grid padding:5 0:6,2 #1:8,3 2:6,6
# Windows Hint
#bind h:${hyper} hint QWERASDFZXCV # QWERTY lefthanded
#bind r:${hyper} relaunch
# Screen Layouts
bind 1:${hyper} ${lefthalf}
bind 2:${hyper} ${full}
bind 3:${hyper} ${righthalf}
bind 4:${hyper} ${tophalf}
bind 5:${hyper} ${bottomhalf}