-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.lua.dist
100 lines (92 loc) · 2.48 KB
/
config.lua.dist
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
config = {}
--[[
Reload configurations automatically.
]]--
config.reload = true
--[[
The base keys (hyper).
]]--
config.hyper = { 'ctrl', 'alt', 'cmd' }
--[[
Menu configuration.
]]--
config.menu = {}
-- Define the menu icon.
config.menu.icon = '⌬'
-- If true, extra menu items will be displayed.
config.menu.extended = false
-- Set the timers for the caffeine.
config.menu.caffeine = {
{ title = '10 minutes', seconds = 600 },
{ title = '30 minutes', seconds = 1800 },
{ title = '1 hour', seconds = 3600 },
{ title = '3 hours', seconds = 10800 },
}
--[[
Audio configuration.
]]--
config.audio = {}
-- React and force input devices based on the connected device.
config.audio.forceInputDevices = {
{
from = 'Anker SoundCore',
to = 'MacBook Pro Microphone',
},
}
-- Set to true to make the volume muted when the computer wakes up.
config.audio.muteOnAwake = true
--[[
Battery configuration.
--]]
config.battery = {}
-- Define your original charger serial number.
config.battery.serial = 'C060305AHQZPM0RAH'
-- Define if you want to get notified if the battery quality is not Good.
config.battery.state = true
--[[
Define applications shortcut.
--]]
config.applications = {
I = 'iTerm',
P = 'PhpStorm',
L = 'Sublime Text',
}
--[[
Spoons configurations.
--]]
config.HoldToQuit = {}
config.HoldToQuit.duration = 0.3
config.Seal = {}
config.Seal.hotkey = { config.hyper, 'space' }
config.Seal.placeholder = 'Search'
config.Seal.key = ''
config.Seal.useractions = {
-- Simple website aliases.
['Hammerspoon docs'] = {
url = 'http://hammerspoon.org/docs/',
description = 'http://hammerspoon.org/docs/',
icon = hs.image.imageFromURL('https://www.google.com/s2/favicons?sz=64&domain_url=hammerspoon.org'),
},
['Spotify'] = {
url = 'https://open.spotify.com/',
description = 'https://open.spotify.com/',
icon = 'favicon',
},
['WhatsApp'] = {
url = 'https://web.whatsapp.com/',
description = 'https://web.whatsapp.com/',
icon = 'favicon',
},
['Messenger'] = {
url = 'https://www.messenger.com/',
description = 'https://www.messenger.com/',
icon = 'favicon',
},
-- Websites that use query.
['Google search'] = {
url = 'http://goo.gl/search/${query}',
description = 'Open in Google search website.',
keyword = 'gg',
icon = hs.image.imageFromURL('https://www.google.com/s2/favicons?sz=64&domain_url=google.com'),
},
}