1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-30 11:42:04 +00:00
mpv/TOOLS/lua
Ricardo Constantino 91b9dcf800 TOOLS/lua: Add zones.lua
Lua script that enables handling of certain commands depending on where
the mouse pointer is. Mostly useful for mouse-wheel handling via
input.conf.

Example:

MOUSE_BTN3 script-message-to zones commands "*-left: add volume +5"
"default: seek +10"
MOUSE_BTN4 script-message-to zones commands "*-left: add volume -5"
"default: seek -10"

Will changes behavior of Mouse Wheel Up/Down to alter volume if mouse is
in the left zone of the window, but re-adds the default to seek if wheel
is used on other parts.
2015-08-09 23:52:13 +02:00
..
audio-hotplug-test.lua
autocrop.lua
autodeint.lua TOOLS: make autodeint detect telecine in parallel 2015-07-16 16:14:58 -07:00
autoload.lua
cycle-deinterlace-pullup.lua
drc-control.lua
observe-all.lua
ontop-playback.lua
pause-when-minimize.lua
README.md
status-line.lua TOOLS/lua/status-bar: update use of a deprecated property 2015-05-25 22:01:34 +02:00
zones.lua TOOLS/lua: Add zones.lua 2015-08-09 23:52:13 +02:00

mpv lua scripts

The lua scripts in this folder can be loaded on a one-time basis by adding the option

--script=/path/to/script.lua

to mpv's command line.

Where appropriate, they may also be placed in ~/.config/mpv/scripts/ from where they will be automatically loaded when mpv starts.

Some of these are just for testing mpv internals.