Mercurial > dotfiles.old
comparison slate.js @ 194:3384993cbf4c
Add slate config
author | zegervdv <zegervdv@me.com> |
---|---|
date | Wed, 12 Nov 2014 22:33:11 +0100 |
parents | |
children | 489b51bdbc9b |
comparison
equal
deleted
inserted
replaced
193:0c8211e1c67a | 194:3384993cbf4c |
---|---|
1 S.cfga({ | |
2 "defaultToCurrentScreen" : true, | |
3 "secondsBetweenRepeat" : 0.1, | |
4 "checkDefaultsOnLoad" : true, | |
5 "focusCheckWidthMax" : 3000, | |
6 "orderScreensLeftToRight" : true, | |
7 "keyboardLayout" : "azerty" | |
8 }); | |
9 | |
10 // Monitors | |
11 var monMain = "1280x800"; | |
12 var monHP = "1920x1080"; | |
13 var monMac = "2560x1400"; | |
14 | |
15 var extMonRef = "0"; | |
16 var mainMonRef = "1"; | |
17 | |
18 var topRight = S.operation("move", { | |
19 "screen" : extMonRef, | |
20 "x" : "screenOriginX + 1140", | |
21 "y" : "screenOriginY + 10", | |
22 "width" : "760", | |
23 "height" : "350", | |
24 }); | |
25 | |
26 var bottomRight = S.operation("move", { | |
27 "screen" : extMonRef, | |
28 "x" : "screenOriginX + 1140", | |
29 "y" : "screenOriginY + 375", | |
30 "width" : "760", | |
31 "height" : "660", | |
32 }); | |
33 | |
34 var mainLeft = S.operation("move", { | |
35 "screen" : extMonRef, | |
36 "x" : "screenOriginX + 20", | |
37 "y" : "screenOriginY + 10", | |
38 "width" : "1080", | |
39 "height" : "1020", | |
40 }); | |
41 | |
42 // Layout | |
43 var HPsetupLayout = S.layout("HPsetupLayout", { | |
44 "Terminal" : { | |
45 "operations" : [bottomRight, topRight], | |
46 "repeat" : true | |
47 }, | |
48 "Safari" : { | |
49 "operations" : [mainLeft] | |
50 } | |
51 }); | |
52 | |
53 S.bind("space:ctrl", S.operation("layout", { "name" : HPsetupLayout })); | |
54 S.default([monHP,monMain], HPsetupLayout); |