-
Notifications
You must be signed in to change notification settings - Fork 3
/
init.lua
56 lines (40 loc) · 1.22 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
local _M = {}
_M.__index = _M
_M.name = "init"
_M.author = "XG <levinwang6@gmail.com>"
_M.license = "MIT"
_M.homepage = "https://github.com/windvalley/dot-hammerspoon"
-- Hammerspoon Preferences
hs.autoLaunch(true)
hs.automaticallyCheckForUpdates(false)
hs.consoleOnTop(false)
hs.dockIcon(false)
hs.menuIcon(true)
hs.uploadCrashData(false)
-- 每次按快捷键时显示快捷键alert消息持续的秒数, 0 为禁用.
hs.hotkey.alertDuration = 0
-- 窗口动画持续时间, 0为关闭动画效果.
hs.window.animationDuration = 0
-- Hammerspoon Console 上打印的日志级别.
-- 可选: verbose, debug, info, warning, error, nothing
-- 默认: warning
hs.logger.defaultLogLevel = "warning"
-- app快速启动或切换
require("app_launch")
-- app窗口操作
require("window_manipulation")
-- 系统管理
require("system_manage")
-- 网站快捷访问
require("website_open")
-- 切换到指定输入法
require("manual_input_method")
-- 根据应用不同, 自动切换输入法
require("auto_input_method")
-- 使桌面壁纸保持和 Bing Daily Picture 一致
require("bing_daily_wallpaper")
-- 显示快捷键备忘面板
require("keybindings_cheatsheet")
-- lua文件变动自动reload
require("auto_reload")
return _M