-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmpv.lua
More file actions
12 lines (12 loc) · 798 Bytes
/
Copy pathmpv.lua
File metadata and controls
12 lines (12 loc) · 798 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
local mp = require("mp")
mp.set_property("loop-file", "inf")
mp.set_property("border", "no")
mp.set_property("geometry", "40%")
mp.set_property("autofit", "100%")
mp.add_key_binding("q", "quit_on_q", function() mp.command("quit") end)
mp.add_key_binding("MBTN_MID", "quit_on_middle", function() mp.command("quit") end)
mp.add_key_binding("WHEEL_UP", "zoom_in", function() mp.command("no-osd add window-scale 0.09") end)
mp.add_key_binding("WHEEL_DOWN", "zoom_out", function() mp.command("no-osd add window-scale -0.09") end)
mp.add_key_binding("Ctrl+1", "osc_hide", function() mp.command("script-message osc-visibility never") end)
mp.add_key_binding("Ctrl+2", "osc_show", function() mp.command("script-message osc-visibility always") end)
mp.commandv("set", "script-opts", "osc-visibility=never")