An OSC script for mpv that provides a YouTube-like UI, forked from mpv-osc-modern.
- YouTube-like UI
- More compact layout
- Larger clickable area of buttons
- Hover effect for buttons
- Softer black gradient background
- Fade-in effect on popup
- Shorter duration for fade-in/out
- No deadzone by default (OSC will show up anywhere in the window with mouse movement)
- No window controls when full screen
- Using built-in icons instead of the extra iconic font
- To disable the default OSC, add
osc=no
to yourmpv.conf
file:
echo 'osc=no' >> ~/.config/mpv/mpv.conf
- Put
youtube-ui.lua
in your mpvscripts
directory:
wget -P ~/.config/mpv/scripts https://github.com/eatsu/mpv-osc-youtube-ui/raw/main/youtube-ui.lua
- (optional, but recommended) To show the thumbnail tooltip, put
thumbfast.lua
from thumbfast in your mpvscripts
directory:
wget -P ~/.config/mpv/scripts https://github.com/po5/thumbfast/raw/master/thumbfast.lua
- The main script is based on mpv-osc-modern and
mpv's
osc.lua
. svgtoluapath.py
is based on mpv-osc-tethys.- Icons are based on material-design-icons.