Mercurial > dotfiles.old
annotate slate.js @ 206:b0d14db1857d
Update tpm
author | zegervdv <zegervdv@me.com> |
---|---|
date | Mon, 24 Nov 2014 21:25:08 +0100 |
parents | 2575264385c9 |
children | aba6fdee2489 |
rev | line source |
---|---|
194 | 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 | |
205 | 42 var halfRight = S.operation("move", { |
43 "screen" : monMain, | |
44 "x" : "screenSizeX/2", | |
45 "y" : "0", | |
46 "width" : "screenSizeX/2", | |
47 "height" : "screenSizeY" | |
48 }); | |
49 | |
50 var hideChat = S.operation("hide", { "app" : "Terminal" }); | |
51 var showChat = S.operation("show", { | |
52 "app" : ["Terminal"] | |
53 }); | |
54 var focusTerm = S.operation("focus", { "app" : "Terminal" }); | |
55 | |
56 var twoThirdsLeft = S.operation("move", { | |
57 "screen" : monMain, | |
58 "x" : "0", | |
59 "y" : "0", | |
60 "width" : "screenSizeX * 2 / 3", | |
61 "height" : "screenSizeY" | |
62 }); | |
63 | |
194 | 64 // Layout |
205 | 65 var HPSetupLayout = S.layout("HPSetupLayout", { |
66 "_before_" : { "operations" : showChat, "repeat-last" : true }, | |
67 "_after_" : { "operations" : focusTerm }, | |
194 | 68 "Terminal" : { |
69 "operations" : [bottomRight, topRight], | |
204
489b51bdbc9b
Make sure first terminal window is largest
zegervdv <zegervdv@me.com>
parents:
194
diff
changeset
|
70 "title-order-regex" : [".+⌘1$"], |
194 | 71 "repeat" : true |
72 }, | |
73 "Safari" : { | |
74 "operations" : [mainLeft] | |
75 } | |
76 }); | |
77 | |
205 | 78 var SingleSetupLayout = S.layout("SingleSetupLayout", { |
79 "Terminal" : { | |
80 "operations" : [halfRight, hideChat], | |
81 "title-order-regex" : [".+⌘1$"], | |
82 "repeat" : true | |
83 }, | |
84 "Safari" : { | |
85 "operations" : [twoThirdsLeft] | |
86 } | |
87 }); | |
88 | |
89 S.bind("space:ctrl", S.operation("layout", { "name" : HPSetupLayout })); | |
90 // S.bind("space:ctrl", S.operation("layout", { "name" : SingleSetupLayout })); | |
91 S.default([monHP,monMain], HPSetupLayout); | |
92 S.default([monMain], SingleSetupLayout); |