-
Notifications
You must be signed in to change notification settings - Fork 0
/
config-example.lua
95 lines (76 loc) · 2.65 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
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
-- Specify Spoons which will be loaded
hspoon_list = {
"AClock",
"BingDaily",
-- "Calendar",
"CircleClock",
"ClipShow",
"CountDown",
"FnMate",
"HCalendar",
"HSaria2",
"HSearch",
-- "KSheet",
"SpeedMenu",
-- "TimeFlow",
-- "UnsplashZ",
"WinWin",
}
-- appM environment keybindings. Bundle `id` is prefered, but application `name` will be ok.
hsapp_list = {
{key = 'a', name = 'Atom'},
{key = 'c', id = 'com.google.Chrome'},
{key = 'd', name = 'ShadowsocksX'},
{key = 'e', name = 'Emacs'},
{key = 'f', name = 'Finder'},
{key = 'i', name = 'iTerm'},
{key = 'k', name = 'KeyCastr'},
{key = 'l', name = 'Sublime Text'},
{key = 'm', name = 'MacVim'},
{key = 'o', name = 'LibreOffice'},
{key = 'p', name = 'mpv'},
{key = 'r', name = 'VimR'},
{key = 's', name = 'Safari'},
{key = 't', name = 'Terminal'},
{key = 'v', id = 'com.apple.ActivityMonitor'},
{key = 'w', name = 'Mweb'},
{key = 'y', id = 'com.apple.systempreferences'},
}
-- Modal supervisor keybinding, which can be used to temporarily disable ALL modal environments.
hsupervisor_keys = {{"cmd", "shift", "ctrl"}, "Q"}
-- Reload Hammerspoon configuration
hsreload_keys = {{"cmd", "shift", "ctrl"}, "R"}
-- Toggle help panel of this configuration.
hshelp_keys = {{"alt", "shift"}, "/"}
-- aria2 RPC host address
hsaria2_host = "http://localhost:6800/jsonrpc"
-- aria2 RPC host secret
hsaria2_secret = "token"
----------------------------------------------------------------------------------------------------
-- Those keybindings below could be disabled by setting to {"", ""} or {{}, ""}
-- Window hints keybinding: Focuse to any window you want
hswhints_keys = {"alt", "tab"}
-- appM environment keybinding: Application Launcher
hsappM_keys = {"alt", "A"}
-- clipshowM environment keybinding: System clipboard reader
hsclipsM_keys = {"alt", "C"}
-- Toggle the display of aria2 frontend
hsaria2_keys = {"alt", "D"}
-- Launch Hammerspoon Search
hsearch_keys = {"alt", "G"}
-- Read Hammerspoon and Spoons API manual in default browser
hsman_keys = {"alt", "H"}
-- countdownM environment keybinding: Visual countdown
hscountdM_keys = {"alt", "I"}
-- Lock computer's screen
hslock_keys = {"alt", "L"}
-- resizeM environment keybinding: Windows manipulation
hsresizeM_keys = {"alt", "R"}
-- cheatsheetM environment keybinding: Cheatsheet copycat
hscheats_keys = {"alt", "S"}
-- Show digital clock above all windows
hsaclock_keys = {"alt", "T"}
-- Type the URL and title of the frontmost web page open in Google Chrome or Safari.
hstype_keys = {"alt", "V"}
-- Toggle Hammerspoon console
hsconsole_keys = {"alt", "Z"}