-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
36 lines (32 loc) · 972 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
-- Manage spoons
hs.loadSpoon("SpoonInstall")
-- Fast resize and move a window to half screen or full size
spoon.SpoonInstall:andUse("WindowHalfsAndThirds",
{
hotkeys =
{
left_half = { {"shift", "cmd"}, "h" },
right_half = { {"shift", "cmd"}, "l" },
top_half = { {"shift", "cmd"}, "k" },
bottom_half = { {"shift", "cmd"}, "j" },
max = { {"shift", "cmd"}, "f" },
center = { {"shift", "cmd"}, "m" },
}
})
-- Moving a window to another screen
spoon.SpoonInstall:andUse("WindowScreenLeftAndRight",
{
hotkeys = {
screen_left = { {"shift", "ctrl", "cmd"}, "h" },
screen_right= { {"shift", "ctrl", "cmd"}, "l" },
}
})
-- Precise contral with grid
spoon.SpoonInstall:andUse("WindowGrid",
{
config = { gridGeometries = { { '6x4' } } },
hotkeys = {show_grid = { {"shift", "ctrl" ,"cmd"}, "g"} },
start = true
})
-- Shortcut for reloading configurations
hs.hotkey.bind({"cmd", "shift", "ctrl"}, "r", hs.reload)