mpv-player / mpv-player/mpv

OSC - Customization options for default layout

Open
#16,900 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

meta:feature-request
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Expected behavior of the wanted feature

0.39

Modifying the OSC by editing the osc.lua file is rather complex for the average user.
I really like the look/simplicity of the default OSC but I feel that most of the elements shown can be accomplished using hotkeys.
For example, I would only like to see the time codes and the seekbar.
Would be nice to offer some customization options that could allow user to make some basic modifications of the default OSC.

The main issue with this idea currently is that the seekbar in the default OSC is not centered, due to having to fit the icons to its right.
Would need solution to being able to center the seekbar for this idea to work properly.

Each item in the OSC could get its own option to turn it on/off, or can make one option and just assign a variable % for each item.
Not exactly but something similar to....
%PL = playlist title found at top of OSC
%P = play
%BF = back and forward icons
%TL = time code left of seekbar
%S = seekbar
%TR = time code right of seekbar
etc.

So if user just wanted time codes and seekbar could type in
%TL %S %TR
with some kind of option prefix, and only these elements would show in the OSC.

For Seekbar, maybe could program to automatically center in MPV window if the two icons to its right are hidden?
Can also add an option to adjust the width of the seekbar.

I know you can do this elsewhere but maybe can also add some basic options for being able to change font sizes of OSC.
-Title font at top of OSC
-Time code fonts
-The two icons to right of seekbar could be linked to the time code font or be their own option as well.

I will stop here because this probably will never be added to MPV.

Thank you to anyone who reads this

I was planning on making this post for a while now but did not think anything would come from it so I held off.
The following post I made recently just made me decide to create this.
https://github.com/mpv-player/mpv/issues/16731

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading osc.lua, then review the linked issue #16731 for context on the requested OSC changes. Compare the proposed visibility, positioning, width, and font-size controls with the existing default layout; done means the customization scope and behavior are clearly defined and accepted by maintainers.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua
Domain
desktop, frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.