summaryrefslogtreecommitdiffstats
path: root/DOCS/man/options.rst
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-08-05 22:37:47 +0200
committerwm4 <wm4@nowhere>2020-08-05 22:37:47 +0200
commit13d354e46d27fd0c433880839abcf9096dbcbc2f (patch)
tree8b410c67db9a1ee0573892386d442019b54122da /DOCS/man/options.rst
parentf457f3839a88447bdef2ecb3ea8b8e37864f9b93 (diff)
downloadmpv-13d354e46d27fd0c433880839abcf9096dbcbc2f.tar.bz2
mpv-13d354e46d27fd0c433880839abcf9096dbcbc2f.tar.xz
auto_profiles: add this script
This is taken from a somewhat older proof-of-concept script. The basic idea, and most of the implementation, is still the same. The way the profiles are actually defined changed. I still feel bad about this being a Lua script, and running user expressions as Lua code in a vaguely defined environment, but I guess as far as balance of effort/maintenance/results goes, this is fine. It's a bit bloated (the Lua scripting state is at least 150KB or so in total), so in order to enable this by default, I decided it should unload itself by default if no auto-profiles are used. (And currently, it does not actually rescan the profile list if a new config file is loaded some time later, so the script would do nothing anyway if no auto profiles were defined.) This still requires defining inverse profiles for "unapplying" a profile. Also this is still somewhat racy. Both will probably be alleviated to some degree in the future.
Diffstat (limited to 'DOCS/man/options.rst')
-rw-r--r--DOCS/man/options.rst5
1 files changed, 5 insertions, 0 deletions
diff --git a/DOCS/man/options.rst b/DOCS/man/options.rst
index 95bec1c3d3..ad7d449b33 100644
--- a/DOCS/man/options.rst
+++ b/DOCS/man/options.rst
@@ -999,6 +999,11 @@ Program Behavior
show the console, and ``ESC`` to hide it again. (This is based on a user
script called ``repl.lua``.)
+``--load-auto-profiles=<yes|no|auto>``
+ Enable the builtin script that does auto profiles (default: auto). See
+ `Conditional auto profiles`_ for details. ``auto`` will load the script,
+ but immediately unload it if there are no conditional profiles.
+
``--player-operation-mode=<cplayer|pseudo-gui>``
For enabling "pseudo GUI mode", which means that the defaults for some
options are changed. This option should not normally be used directly, but