-
Notifications
You must be signed in to change notification settings - Fork 1
/
.slate
67 lines (60 loc) · 2.43 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
# Configs
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
config secondsBetweenRepeat 0.1
config checkDefaultsOnLoad true
config focusCheckWidthMax 3000
config windowHintsShowIcons true
config windowHintsBackgroundColor 96;96;64;0.5
config windowHintsIgnoreHiddenWindows true
#config windowHintsOrder persist
config windowHintsSpread true
config windowHintsSpreadPadding 40
config windowHintsSpreadSearchWidth 80
config windowHintsSpreadSearchHeight 80
config switchIconPadding 2
config switchBackgroundColor 50;53;58;0.7
config switchSelectedPadding 4
config switchIconSize 96
config switchShowTitles true
config switchFontSize 11
config switchRoundedCornerSize 4
config undoOps move,resize
# ======================================
# The HYPER key (bound using PCKeyboardHack and KeyRemap4Macbook)
# ======================================
alias hyper ctrl;shift;alt;cmd
bind space:${hyper} hint ASDFGHJKLQWERTYUIOPCVBN # use whatever keys you want
bind g:cmd grid padding:5 0:6,2 1:8,3
# Abstract positions
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 leftthird move screenOriginX;screenOriginY screenSizeX/3;screenSizeY
alias middlethird move screenOriginX+screenSizeX/3;screenOriginY screenSizeX/3;screenSizeY
alias rightthird move screenOriginX+2*screenSizeX/3;screenOriginY screenSizeX/3;screenSizeY
alias righttwothird move screenOriginX+screenSizeX/3;screenOriginY 2*screenSizeX/3;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
# Location Bindings
bind l:${hyper} ${lefthalf}
bind f:${hyper} ${full}
bind r:${hyper} ${righthalf}
bind k:${hyper} ${righttwothird}
bind s:${hyper} throw next
bind z:${hyper} undo
bind u:${hyper} ${leftthird}
bind i:${hyper} ${middlethird}
bind o:${hyper} ${rightthird}
# App bindings
bind e:${hyper} focus 'Code'
bind w:${hyper} focus 'Google Chrome'
bind m:${hyper} focus 'Spotify'
bind t:${hyper} focus 'iTerm2'
bind d:${hyper} focus 'Sublime Text'
bind c:${hyper} focus 'Slack'
bind d:${hyper} focus 'Postman'
bind v:${hyper} focus 'IntelliJ IDEA'