-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathremote.lua
More file actions
115 lines (93 loc) · 1.94 KB
/
remote.lua
File metadata and controls
115 lines (93 loc) · 1.94 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
local keyboard = libs.keyboard;
--@help Zoom
actions.zoom = function()
keyboard.stroke("ctrl", "cmd", "z");
end
--@help Close Window
actions.close_window = function()
keyboard.stroke("cmd", "w");
end
--@help Lower volume
actions.volume_down = function()
keyboard.stroke("cmd", "down");
end
--@help Mute volume
actions.volume_mute = function()
keyboard.stroke("cmd", "k");
end
--@help Raise volume
actions.volume_up = function()
keyboard.stroke("cmd", "up");
end
--@help Pause playback
actions.play_pause = function()
keyboard.stroke("space");
end
--@help Navigate left
actions.left = function()
keyboard.stroke("left");
end
--@help Navigate up
actions.up = function()
keyboard.stroke("up");
end
--@help Select current item
actions.select = function()
keyboard.stroke("return");
end
--@help Navigate right
actions.right = function()
keyboard.stroke("right");
end
--@help Navigate down
actions.down = function()
keyboard.stroke("down");
end
--@help Navigate back
actions.back = function()
keyboard.stroke("esc");
end
--@help Next item
actions.next = function()
keyboard.stroke("right");
end
--@help Channel up
actions.channel_up = function ()
keyboard.stroke("plus");
end
--@help Channel down
actions.channel_down = function ()
keyboard.text("-");
end
--@help Jump forward
actions.jump_forward = function ()
keyboard.stroke("right");
end
--@help Fast forward
actions.fast_forward = function ()
keyboard.stroke("cmd", "right");
end
--@help Fast basck
actions.fast_back = function ()
keyboard.stroke("cmd", "left");
end
--@help Info
actions.info = function ()
keyboard.stroke("cmd", "i");
end
--@help Jump backward
actions.jump_back = function ()
keyboard.stroke("left");
end
--@help Show Program Window
actions.show_program_window = function ()
keyboard.stroke("space");
end
--@help Toggle fullscreen
actions.fullscreen = function ()
keyboard.stroke("cmd", "0");
end
--@help Open menu
actions.menu = function ()
keyboard.stroke("cmd", "esc");
end