summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-03-20 22:49:31 +0100
committerwm4 <wm4@nowhere>2014-03-20 22:49:31 +0100
commitf705bbb2d5e5566fd9be7f144bd983c27ba5285d (patch)
treecbfe5aa3be5a65e176d7256902ab20d3c363c931
parentedf0dda2e4e48205e30ebfb297f5a2059ea98a25 (diff)
downloadmpv-f705bbb2d5e5566fd9be7f144bd983c27ba5285d.tar.bz2
mpv-f705bbb2d5e5566fd9be7f144bd983c27ba5285d.tar.xz
manpage: osc: document some recent additions
-rw-r--r--DOCS/man/en/osc.rst27
1 files changed, 27 insertions, 0 deletions
diff --git a/DOCS/man/en/osc.rst b/DOCS/man/en/osc.rst
index 45a97ea9cf..dab98bd2fc 100644
--- a/DOCS/man/en/osc.rst
+++ b/DOCS/man/en/osc.rst
@@ -122,6 +122,12 @@ time remaining
left-click toggle between total and remaining time
============= ================================================
+hide
+ | Hide the OSC permanently until mpv is restarted.
+
+ ============= ================================================
+ del hide the OSC
+ ============= ================================================
Configuration
-------------
@@ -200,3 +206,24 @@ Configurable parameters
| Minimum amount of pixels the mouse has to move between ticks to make
the OSC show up
+Script commands
+~~~~~~~~~~~~~~~
+
+The OSC script listens to certain script commands. These commands can bound
+in ``input.conf``, or sent by other scripts.
+
+``enable-osc``
+ Undoes ``disable-osc`` or the effect of the ``del`` key.
+
+``disable-osc``
+ Hide the OSC permanently. This is also what the ``del`` key does.
+
+
+.. admonition:: Example
+
+ You could out this into ``input.conf`` to hide the OSC with the ``a`` key
+ and to unhide it with ``b``:
+
+ | a script_message disable-osc
+ | b script_message enable-osc
+