-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
62 lines (57 loc) · 1.42 KB
/
init.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
-- Disable animation when repositioning windows
hs.window.animationDuration = 0
hs.loadSpoon("SpoonInstall")
local hyper = { "ctrl", "alt" }
hs.hints.style = "vimperator"
hs.hints.fontName = "SFPro-Regular"
hs.hints.fontSize = 20
hs.hints.windowHints(hs.window.focusedWindow():application():allWindows())
hs.hotkey.bind(hyper, "Space", hs.hints.windowHints)
-- Load all spoons with their respective settings
for plugin, configuration in pairs({
AppLauncher = {
hotkeys = {
c = "Calendar",
d = "Discord",
f = "Finder",
m = "Music",
n = "Notes",
p = "1Password 7",
r = "Reeder",
s = "Firefox Developer Edition",
t = "Ghostty",
},
},
Caffeine = {
fn = function(caffeine)
caffeine:start():setState(true)
end,
},
FnMate = {},
KSheet = { hotkeys = { toggle = { { "ctrl", "alt", "shift" }, "/" } } },
ReloadConfiguration = { start = true },
SkyRocket = {
fn = function(skyrocket)
skyrocket:new({
opacity = 0.3,
moveModifiers = { "cmd", "alt", "shift" },
resizeModifiers = { "alt", "shift" },
})
end,
},
Spatial = {
repo = "Spatial",
start = true,
config = {
activeSpaceIcon = function()
return "⦁ "
end,
inactiveSpaceIcon = function()
return "⸱ "
end,
},
},
}) do
spoon.SpoonInstall:andUse(plugin, configuration)
end
hs.alert.show("Config loaded")