-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample-config.lua
More file actions
77 lines (55 loc) · 2.13 KB
/
example-config.lua
File metadata and controls
77 lines (55 loc) · 2.13 KB
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
--
-- copy this file fo 'config.lua' and edit as needed
--
local cfg = {}
cfg.mash = {'ctrl', 'alt', 'cmd'}
----------------------------
-- Hammerspoon settings --
----------------------------
hs.window.animationDuration = 0 -- disable animations
hs.menuIcon(false)
hs.consoleOnTop(true)
--hs.hints.fontName = "DejaVu Sans Mono"
hs.hints.fontSize = 14
hs.hints.showTitleThresh = 8
---------------------
-- EMail address --
---------------------
cfg.email = "[email protected]"
---------------
-- Layouts --
---------------
cfg.dualLayout = {
["Safari"] = { Action.MoveToScreen(1), Action.MoveToUnit(0.125, 0, 0.75, 1) },
["iTunes"] = { Action.MoveToScreen(2), Action.Maximize() },
["iTerm2"] = { Action.MoveToScreen(2), Action.MoveToUnit(0.05, 0.04, 0.9, 0.9) },
["Mail"] = { Action.MoveToScreen(2), Action.Maximize() },
["Twitter"] = { Action.MoveToScreen(1), Action.MoveToUnit(hs.layout.left25) },
["VLC"] = { Action.MoveToScreen(1), Action.Resize(200, 150), Action.PositionBottomRight() },
["Xcode"] = { Action.MoveToScreen(1), Action.Maximize() }
}
cfg.singleLayout = {
["Safari"] = { Action.MoveToScreen(1), Action.Maximize() },
["iTunes"] = { Action.MoveToScreen(1), Action.Maximize() },
["Mail"] = { Action.MoveToScreen(1), Action.Maximize() },
["Things"] = { Action.MoveToScreen(1), Action.MoveToUnit(hs.layout.right75) },
["Twitter"] = { Action.MoveToScreen(1), Action.MoveToUnit(hs.layout.left25) },
["VLC"] = { Action.MoveToScreen(1), Action.Resize(200, 150), Action.PositionBottomRight() },
["Xcode"] = { Action.MoveToScreen(1), Action.Maximize() }
}
------------------------------
-- Hardware Notifications --
------------------------------
cfg.notifications = {
enableBattery = true,
enableVolumes = true,
enableUsb = true,
enableWifi = true,
enableNetwork = true
}
----------------------------------------------------------------------
-- Automatically enable / disable Bluetooth on monitor connection --
-- Requires https://github.com/toy/blueutil --
----------------------------------------------------------------------
cfg.manageBluetooth = false
return cfg