Skip to content

A Lua script for mpv to display configuration files on the OSD.

License

Notifications You must be signed in to change notification settings

pierretom/show-conf-osd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

show-conf-osd

A Lua script for mpv to display configuration files on the OSD.

Installation

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 or
    • c:\users\<username>\AppData\Roaming\mpv\scripts

Usage

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.

Default key bindings

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

Notes

  1. The script has not been tested on macOS and Windows, please report if you have issues.

  2. 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
  1. 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

About

A Lua script for mpv to display configuration files on the OSD.

Topics

Resources

License

Stars

Watchers

Forks

Languages