-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.slate
79 lines (62 loc) · 2.53 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
# Configs
config defaultToCurrentScreen true
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
# Monitor Aliases
alias mon-retina 1920x1200
alias mon-30in 2560x1600
# alias: create alias variables
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 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
alias contact-list corner top-right
alias chat-window corner bottom-left resize:screenSizeX/4;screenSizeY/2
# Layout when using a single monitor
layout 1monitor 'iTerm':REPEAT ${righthalf}
layout 1monitor 'Google Chrome':REPEAT ${lefthalf}
layout 1monitor 'Adium':IGNORE_FAIL,TITLE_ORDER_REGEX=Contacts ${contact-list} | ${chat-window}
layout 1monitor 'nvALT':REPEAT ${righthalf}
# Default Layouts
default 1monitor resolutions:${mon-retina}
default 1monitor resolutions:${mon-30in}
###############################################################################
# Key Bindings
###############################################################################
# Hyper key
alias hyper ctrl;shift;alt;cmd
# Super key
alias super ctrl;alt;cmd
# Hyper+w: Activate windows hint
bind w:${hyper} hint asdfghjkl;'
bind r:${hyper} relaunch
# Hyper+h: Move window to left half
bind h:${hyper} ${lefthalf}
bind left:${super} ${lefthalf}
# Hyper+j: Move focus left
bind j:${hyper} focus left
# Hyper+k: Move focus right
bind k:${hyper} focus right
# Hyper+l: Move window to right half
bind l:${hyper} ${righthalf}
bind right:${super} ${righthalf}
# Hyper+f: Move window full screen
bind f:${hyper} ${full}
bind up:${super} ${full}
# Application switcher
bind b:${hyper} focus 'Google Chrome'
bind g:${hyper} focus 'Google Chrome'
bind t:${hyper} focus 'iTerm'
bind return:${hyper} focus 'iTerm'
bind e:${hyper} focus 'Eclipse'
bind o:${hyper} focus 'Microsoft Outlook'
# bind tab:cmd switch
# Hyper+n: Switches to personal notes in nvAlt, mapped in nvAlt itself
# Hyper+m: Switches to work notes in nvAlt, mapped in nvAlt itself
# Hyper+Enter: Reset the default layout and focus Chrome and iTerm
# bind return:${hyper} sequence layout 1monitor | focus 'Google Chrome' | focus 'iTerm'
# source: load configs from another file