-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhotkeys.lua
65 lines (53 loc) · 1.57 KB
/
hotkeys.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
hs.hotkey.bind({"ctrl", "alt", "cmd"}, "left", function()
if #hs.screen.allScreens() <= 4 then -- TODO(vjpr): Why do we need this guard?
pusher.pushLeft()
end
end)
hs.hotkey.bind({"ctrl", "alt", "cmd"}, "right", function()
if #hs.screen.allScreens() <= 4 then -- TODO(vjpr): Why do we need this guard?
pusher.pushRight()
end
end)
hs.hotkey.bind({"ctrl", "alt", "cmd"}, "j", function()
pusher.oneThirdLeft()
end)
hs.hotkey.bind({"ctrl", "alt", "cmd"}, "k", function()
pusher.oneThirdMiddle()
end)
hs.hotkey.bind({"ctrl", "alt", "cmd"}, "l", function()
pusher.oneThirdRight()
end)
hs.hotkey.bind({"ctrl", "alt", "cmd"}, "{", function()
pusher.pushOneThirdLeft()
end)
hs.hotkey.bind({"ctrl", "alt", "cmd"}, "}", function()
pusher.pushOneThirdRight()
end)
local allowTabOutliner = false
hs.hotkey.bind({"ctrl", "alt", "cmd"}, "home", function()
if not allowTabOutliner or #hs.screen.allScreens() < 3 then
pusher.twoThirdsLeft()
else
tabsOutlinerModule.pushLeft()
end
end)
hs.hotkey.bind({"ctrl", "alt", "cmd"}, "end", function()
if not allowTabOutliner or #hs.screen.allScreens() < 3 then
pusher.twoThirdsRight()
else
tabsOutlinerModule.pushRight()
end
end)
--hs.hotkey.bind({"cmd", "alt", "ctrl"}, "<", function()
-- tabsOutlinerModule.pushLeft()
--end)
--
--hs.hotkey.bind({"cmd", "alt", "ctrl"}, ">", function()
-- tabsOutlinerModule.pushRight()
--end)
hs.hotkey.bind({"cmd", "alt", "ctrl"}, ",", function()
tabsOutlinerModule.pushLeft()
end)
hs.hotkey.bind({"cmd", "alt", "ctrl"}, ".", function()
tabsOutlinerModule.pushRight()
end)