-
Notifications
You must be signed in to change notification settings - Fork 86
/
.slate
107 lines (101 loc) · 4.57 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
# .slate
# Author: Nicola Paolucci <nick@durdn.com>
# Source: http://github.com/durdn/cfg/.slate
# Configs {{{
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# }}}
# General aliases {{{
alias sox screenOriginX
alias soy screenOriginY
alias ssx screenSizeX
alias ssy screenSizeY
alias 80cols 675
# }}}
# Position Aliases {{{
alias center-normal move ${sox}+${ssx}/4;${soy} ${ssx}/2;${ssy}
alias cntr-80-cols move (${sox}+${ssx}/2)-${80cols}/2;${soy} ${80cols};${ssy}
alias center-half move (${sox}+${ssx}/2)-${80cols}/2;${soy} ${80cols};${ssy}/2
alias cen-half-bot move (${sox}+${ssx}/2)-${80cols}/2;${soy}+${ssy}/2 ${80cols};${ssy}/2
alias top-r move ${sox}+${ssx}/2;${soy} ${ssx}/2;${ssy}/2
alias top-r-80 move (${sox}+${ssx}/2)+${80cols}/2;${soy} (${ssx}/2)-${80cols}/2;${ssy}/2
alias top-r-half move ${sox}+${ssx}/2+${ssx}/4;${soy} ${ssx}/4;${ssy}/2
alias top-l move ${sox};${soy} ${ssx}/2;${ssy}/2
alias top-l-80 move ${sox};${soy} (${ssx}/2)-${80cols}/2;${ssy}/2
alias bot-l move ${sox};${soy}+${ssy}/2 ${ssx}/2;${ssy}/2
alias bot-r move ${sox}+${ssx}/2;${soy}+${ssy}/2 ${ssx}/2;${ssy}/2
alias bot-r-half move ${sox}+${ssx}/2+${ssx}/4;${soy}+${ssy}/2 ${ssx}/4;${ssy}/2
alias maximize push left bar-resize:${ssx}
alias left-notch-0 move ${sox};${soy} ${ssx}/2-60;${ssy}-23
alias left-notch-1 move ${sox};${soy}+23 ${ssx}/2-30;${ssy}-23
alias left-notch-2 move ${sox};${soy}+46 ${ssx}/2;${ssy}-46
alias h-left push left bar-resize:${ssx}/2
alias h-right push right bar-resize:${ssx}/2
alias h-top push up bar-resize:${ssy}/2
alias h-bottom push down bar-resize:${ssy}/2
alias h-left-80 push left bar-resize:(${ssx}/2)-${80cols}/2
alias h-left-80rev push left bar-resize:(${ssx}/2)+${80cols}/2
alias h-right-80 move (${sox}+${ssx}/2)+${80cols}/2;${soy} (${ssx}/2)-${80cols}/2;${ssy}
alias h-right-80rev move (${sox}+${ssx}/2)-${80cols}/2;${soy} (${ssx}/2)+${80cols}/2;${ssy}
#position thirds
alias 3c-right move ${sox}+${ssx}*2/3;${soy} ${ssx}/3;${ssy}
alias 3c-middle move ${sox}+${ssx}/3;${soy} ${ssx}/3;${ssy}
alias 3c-left move ${sox};${soy} ${ssx}/3;${ssy}
alias 3c-right-top move ${sox}+${ssx}*2/3;${soy} ${ssx}/3;${ssy}/2
alias 3c-right-bot move ${sox}+${ssx}*2/3;${soy}+${ssy}/2 ${ssx}/3;${ssy}/2
alias 3c-middle-top move ${sox}+${ssx}/3;${soy} ${ssx}/3;${ssy}/2
alias 3c-middle-bot move ${sox}+${ssx}/3;${soy}+${ssy}/2 ${ssx}/3;${ssy}/2
#position taller
alias tl-main move ${sox};${soy} ${ssx}*2/3;${ssy}
alias tl-right-top move ${sox}+${ssx}*2/3;${soy} ${ssx}/3;${ssy}/2
alias tl-right-bot move ${sox}+${ssx}*2/3;${soy}+${ssy}/2 ${ssx}/3;${ssy}/2
alias tl-right move ${sox}+${ssx}*2/3;${soy} ${ssx}/3;${ssy}
# }}}
# Push Bindings {{{
bind h:alt chain ${h-left} | ${h-left-80} | ${h-left-80rev}
bind h:alt;shift chain ${top-l} | ${top-l-80} | ${bot-l}
bind l:alt chain ${h-right} | ${h-right-80} | ${h-right-80rev}
bind l:alt;shift chain ${top-r} | ${top-r-80} | ${bot-r}
bind c:alt chain ${center-normal} | ${cntr-80-cols} | ${center-half} | ${cen-half-bot}
bind 8:alt ${h-top}
bind 9:alt ${h-bottom}
bind m:shift;alt ${maximize}
bind m:alt ${maximize}
# }}}
# 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
# }}}
# Nudge Bindings {{{
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 {{{
bind o:alt chain throw next
# }}}
# Focus Bindings {{{
bind l:ctrl;alt focus right
bind h:ctrl;alt focus left
bind k:ctrl;alt focus up
bind j:ctrl;alt focus down
bind j:alt focus behind
bind k:alt focus behind
# }}}
# Window Hints {{{
bind p:alt hint
# }}}
# Relaunch {{{
bind 7:alt relaunch
# }}}
# Grid {{{
bind g:alt grid padding:5 0:3,3 1:3,3
# }}}