A Lua script for mpv to display configuration files on the OSD.
Place show-conf-osd.lua
it in the corresponding mpv scripts
folder of your operating system:
- Linux & BSD:
$XDG_CONFIG_HOME/mpv/scripts
or~/.config/mpv/scripts
or/home/<username>/.config/mpv/scripts
- macOS:
$HOME/.config/mpv/scripts
or~/.config/mpv/scripts
or/Users/<username>/.config/mpv/scripts
- Windows:
%APPDATA%\mpv\scripts
orc:\users\<username>\AppData\Roaming\mpv\scripts
Configuration files are searched in the user mpv directory:
- Unix like:
- $HOME/.config/mpv
- Windows:
- c:\users<username>\AppData\Roaming\mpv
Press a key to switch to the display of a configuration file, press again to hide.
Key | Action |
---|---|
a | Display mpv.conf |
c | Display input.conf |
h | Display fonts.conf |
k | Display osc.conf |
UP | Scroll up |
DOWN | Scroll down |
You can reassign it in the script or in the input.conf
file:
yourkey script-binding show-mpv-conf
yourkey script-binding show-input-conf
yourkey script-binding show-fonts-conf
yourkey script-binding show-osc-conf
-
The script has not been tested on macOS and Windows, please report if you have issues.
-
It is recommended to use a fixed-width font for the OSD with this script, to keep text formating from configuration files.
Examples:
- DejaVu Sans Mono
- Liberation Mono
- Menlo
- Monaco
- Consolas
- Courier New
- If you cannot see some lines on the OSD, you can ajust the number of lines to display at once in the script, e.g.:
display_lines = 28