/
init.lua
98 lines (93 loc) · 1.87 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
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
config = {}
config.applications = {
{
hint = 'com.runningwithcrayons.Alfred-3',
local_bindings = {'c', 'space', 'o', 'u'}
},
{
hint = 'net.kovidgoyal.kitty',
hyper_shortcut = 'j',
preferred_display = 1
},
{
hint = 'com.brave.browser',
hyper_shortcut = 'k',
preferred_display = 1
},
{
hint = 'org.mozilla.firefox',
hyper_shortcut = 'w',
preferred_display = 1
},
{
hint = 'com.kapeli.dashdoc',
hyper_shortcut = 'h'
},
{
hint = 'com.tinyspeck.slackmacgap',
hyper_shortcut = 'i',
preferred_display = 2,
distraction = true
},
{
hint = 'it.bloop.airmail2',
hyper_shortcut = 'e',
preferred_display = 2,
distraction = true
},
{
hint = 'com.flexibits.fantastical2.mac',
hyper_shortcut = 'y',
local_bindings = {']'},
preferred_display = 2,
},
{
hint = 'com.apple.finder',
hyper_shortcut = 'f'
},
{
hint = 'com.hnc.Discord',
hyper_shortcut = 'l',
preferred_display = 2,
distraction = true
},
{
hint = 'us.zoom.xos',
hyper_shortcut = 'z',
preferred_display = 2
},
{
hint = 'com.bohemiancoding.sketch3',
hyper_shortcut = 'v',
preferred_display = 1
},
{
hint = 'com.tapbots.Tweetbot3Mac',
distraction = true,
local_bindings = {';'}
},
{
hint = 'com.culturedcode.ThingsMac',
hyper_shortcut = 't',
preferred_display = 2,
local_bindings = {',', '.'}
},
{
hint = 'com.agiletortoise.Drafts-OSX',
local_bindings = {'\''}
},
}
local hyper = require 'hyper'
require 'autolayout'
require 'movewindows'
require 'pomodoro'
require 'airpods'
hyper:bind({}, 'r', nil, function() hs.reload() end)
hyper:bind({}, 'a', nil, function()
local ok, output = airPods('Evan’s AirPods')
if ok then
hs.alert.show(output)
else
hs.alert.show("Couldn't connect to AirPods!")
end
end)