-
Notifications
You must be signed in to change notification settings - Fork 0
/
slate
55 lines (46 loc) · 1.71 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
# Slate configuration file
# Based on http://joseph.is/1zVVEyg
alias hyper ctrl;alt;cmd;shift
# Config
config nudgePercentOf screenSize
config resizePercentOf screenSize
config windowHintsFontSize 60
config windowHintsTopLeftX (windowSizeX/2)-(windowHintsWidth/2)
config windowHintsTopLeftY (windowSizeY/2)-(windowHintsHeight/2)
#config windowHintsIgnoreHiddenWindows false
# Application aliases
#alias browser 'Google Chrome'
#alias mail 'Mail'
#alias spotify 'Spotify'
#alias terminal 'iTerm'
# General aliases
alias sox screenOriginX
alias soy screenOriginY
alias ssx screenSizeX
alias ssy screenSizeY
# Position aliases
alias centered ${sox}+${ssx}/8;${soy}+${ssy}/8 ${ssx}/8*6;${ssy}/8*6
alias fullscreen ${sox};${soy} ${ssx};${ssy}
alias leftHalf ${sox};${soy} ${ssx}/2;${ssy}
alias bottomHalf ${sox};${soy}+${ssy}/2 ${ssx};${ssy}/2
alias topHalf ${sox};${soy} ${ssx};${ssy}/2
alias rightHalf ${sox}+${ssx}/2;${soy} ${ssx}/2;${ssy}
alias topLeft ${sox};${soy} ${ssx}/2;${ssy}/2
alias topRight ${sox}+${ssx}/2;${soy} ${ssx}/2;${ssy}/2
alias bottomLeft ${sox};${soy}+${ssy}/2 ${ssx}/2;${ssy}/2
alias bottomRight ${sox}+${ssx}/2;${soy}+${ssy}/2 ${ssx}/2;${ssy}/2
# Hints
bind f:${hyper} hint LKJHGFDSA
# Switch screens
bind i:${hyper} throw next
# Location bindings
bind o:${hyper} move ${fullscreen}
bind p:${hyper} move ${centered}
bind h:${hyper} move ${leftHalf}
bind j:${hyper} move ${bottomHalf}
bind k:${hyper} move ${topHalf}
bind l:${hyper} move ${rightHalf}
bind y:${hyper} move ${topLeft}
bind u:${hyper} move ${topRight}
bind n:${hyper} move ${bottomLeft}
bind m:${hyper} move ${bottomRight}