-
Notifications
You must be signed in to change notification settings - Fork 3
/
init.lua
37 lines (28 loc) · 857 Bytes
/
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
----------------------------------------------------------------------------------------------------
-- Main init file
--
-- Start IPC module
require("hs.ipc")
-- Reload Hammerspoon hotkey
hs.hotkey.bind({ "alt", "cmd", "shift" }, "r", function()
hs.console.clearConsole()
hs.reload()
end)
-- Disable window animation
hs.window.animationDuration = 0
----------------------------------------------------------------------------------------------------
-- Load, initialize, and configure Ki
--
hs.loadSpoon("Ki")
local Ki = spoon.Ki
-- Use default config
Ki:useDefaultConfig()
-- Configure ki
require("ki-config")
-- Use local config if it exists
local _, err = pcall(function() require("local-ki-config") end)
if err and not err:find("module '.*' not found") then
print("Error loading local ki config: "..err)
end
-- Start Ki
Ki:start()