-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslate
89 lines (67 loc) · 2.42 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
# ======================================
# Slate config by Filip Johansson
# ======================================
# Configs
# ============
config defaultToCurrentScreen true
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
config gridBackgroundColor "0;0;0;0"
config gridRoundedCornerSize 0
config gridCellBackgroundColor "0;0;0;.5"
config gridCellSelectedColor "0;0;0;.8"
config gridCellRoundedCornerSize 0
# Aliases
# ============
# Define the hyper key
alias hyper ctrl;shift;alt;cmd
# Define screen sizes
alias screen-mbp-retina 2880x1800
alias screen-cd-30 2560x1600
# Default window sizes
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias center move screenOriginX+screenSizeX/4.5;screenOriginY 3*screenSizeX/5;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
# Layouts
# ============
# 2 monitor layout
layout 2monitors 'Google Chrome':REPEAT_LAST,TITLE_ORDER_REGEX=^Developer\sTools\s-\s.+$ ${lefthalf} ${screen-cd-30} | ${righthalf} ${screen-cd-30} | ${center} ${screen-cd-30}
layout 2monitors 'Sublime Text' ${lefthalf} ${screen-cd-30}
# 1 monitor layout
# Default layouts
# bind g:${hyper} layout 2monitors
# Key bindings
# ============
# Window positions
bind c:${hyper} chain ${righthalf} | throw 1 resize
bind x:${hyper} chain ${lefthalf} | throw 0 resize
bind space:${hyper} chain ${center} | ${full}
# Undo
bind z:${hyper} undo
# Hint
bind tab:${hyper} hint ASDFGZXCVB
# Application switching
bind 1:${hyper} focus 'iTerm'
bind 2:${hyper} focus 'Google Chrome'
bind 3:${hyper} focus 'Skype'
bind 4:${hyper} focus 'Messages'
bind q:${hyper} focus 'Sublime Text'
bind w:${hyper} focus 'Google Chrome Canary'
bind e:${hyper} focus 'SourceTree'
# Focus windows
#bind left:${hyper} focus left
#bind right:${hyper} focus right
# Show grid
bind g:${hyper} grid padding:10 ${screen-cd-30}:6,4 ${screen-mbp-retina}:6,4
# Hide application
bind esc:${hyper} hide 'current'
# Relaunch Slate
bind return:${hyper} relaunch
# Application switcher
# bind tab:cmd switch