-
Notifications
You must be signed in to change notification settings - Fork 0
/
slate
55 lines (40 loc) · 1.66 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
# Highlevel configuration options
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Abstract positions for later use within configuration.
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 tophalf move screenOriginX;screenOriginY screenSizeX;screenSizeY/2
alias bottomhalf move screenOriginX;screenOriginY+screenSizeY/2 screenSizeX;screenSizeY/2
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
# Simple bindings for window positions
# u i o
# j k l
# m , .
alias hyper ctrl;alt;cmd
bind u:${hyper} ${topleft}
bind j:${hyper} ${lefthalf}
bind m:${hyper} ${bottomleft}
bind i:${hyper} ${tophalf}
bind k:${hyper} ${full}
bind ,:${hyper} ${bottomhalf}
bind o:${hyper} ${topright}
bind l:${hyper} ${righthalf}
bind .:${hyper} ${bottomright}
# Binding for the grid helper
bind g:${hyper} grid padding:5
# Binding to relaunch slate configuration
bind r:${hyper} relaunch
# Binding to throw windows to other screens
bind down:${hyper} throw down resize
bind right:${hyper} throw right resize
bind left:${hyper} throw left resize
bind up:${hyper} throw up resize
bind 8:${hyper} throw 0 resize
bind 9:${hyper} throw 1 resize
bind 0:${hyper} throw 2 resize