forked from tstirrat/hammerspoon-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.lua
69 lines (65 loc) · 1.49 KB
/
config.example.lua
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
local config = {}
config.modules = {
"arrangement",
"monitors",
"repl",
"reload",
"arrows",
"lock",
"fullscreen"
}
-- Maps monitor id -> screen index.
config.monitors = {
autodiscover = true,
rows = 1
}
-- Window arrangements.
config.arrangements = {
fuzzy_search = {
mash = {"cmd", "ctrl", "alt"},
key = "Z"
},
{
name = "zen",
alert = true,
mash = { "cmd", "ctrl", "alt" },
key = "A",
arrangement = {
{
app_title = "^Mail",
monitor = 1,
position = "full_screen",
},
{
app_title = "^Slack",
monitor = 4,
position = "left"
},
{
app_title = "^Messages",
monitor = 4,
position = function(d)
return d:translate_from('bottom_right', {
y = 42,
h = -40
})
end
},
{
app_title = "^ChronoMate",
monitor = 4,
position = function(d)
return d:translate_from('top_right', {
h = 42
})
end
},
{
app_title = "^Spotify",
monitor = 6,
position = "full_screen",
}
}
}
}
return config