-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathremote.lua
executable file
·62 lines (46 loc) · 1.09 KB
/
remote.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
-- Gnome mpv / Celluloid unified remote
-- @author Gautier LABARRE
local kb = libs.keyboard;
--@help First line : Play/Pause / Stop and save position / Stop and quit
actions.playpause = function()
kb.stroke("P");
end
actions.stopAndSave = function()
kb.stroke("shift", "Q");
end
actions.stop = function()
kb.stroke("Q");
end
--@help Second line : Previous / FullScreen / Next
actions.previous = function()
kb.stroke("mediaprevious");
end
actions.fullscreen = function()
kb.stroke("F");
end
actions.next = function()
kb.stroke("medianext");
end
--@help Third line : volume down / Mute / volume up
actions.volumeDown = function()
kb.stroke("shift", "9");
end
actions.mute = function()
kb.stroke("M");
end
actions.volumeUp = function()
kb.stroke("shift", "0");
end
--@help Fourth line : +-5s / Subtitles on and off / +15s
actions.jumpBack = function()
kb.stroke("left");
end
actions.toggleSubtitles = function()
kb.stroke("V");
end
actions.togglePlaylist = function()
kb.stroke("F9");
end
actions.jumbForward = function()
kb.stroke("right");
end