Is there a way to reload uosc without relaunching mpv? #1089
-
|
From pywal I'm updating the colour in |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 7 replies
-
|
We do listen to on_update event of options.read_options (search for it on https://mpv.io/manual/master, links to headers don't work), which enables runtime updates. But I don't think mpv is listening for file changes. uosc certainly isn't. |
Beta Was this translation helpful? Give feedback.
-
|
d-e cycle-values script-opts 'uosc-color="color=foreground=92a7f0,foreground_text=000000,background=001c7f,background_text=ffffff"' 'uosc-color="color=foreground=f39f78,foreground_text=000000,background=b1400d,background_text=ffffff"' 'uosc-color="color=foreground=85f991,foreground_text=000000,background=12711c,background_text=ffffff"' 'uosc-color="color=foreground=f78781,foreground_text=000000,background=8c0800,background_text=ffffff"' 'uosc-color="color=foreground=d791f2,foreground_text=000000,background=591e71,background_text=ffffff"' 'uosc-color="color=foreground=f8984a,foreground_text=000000,background=592f0d,background_text=ffffff"' 'uosc-color="color=foreground=f487d3,foreground_text=000000,background=a23582,background_text=ffffff"' 'uosc-color="color=foreground=b5b3b3,foreground_text=000000,background=3c3c3c,background_text=ffffff"' 'uosc-color="color=foreground=f6cd6e,foreground_text=000000,background=b8850a,background_text=ffffff"' 'uosc-color="color=foreground=54e0f9,foreground_text=000000,background=006374,background_text=ffffff"' 'uosc-color="color=foreground=fffbfe,foreground_text=1c1b1f,background=1c1b1f,background_text=fffbfe"' #! [Subtitle Colors] > 10 Seaborn Dark uosc Theme Colors but to set your default theme must be done in uosc.conf |
Beta Was this translation helpful? Give feedback.
-
|
This works too saving theme to uosc.conf and also showing immediate change. Mac or Linux should work. |
Beta Was this translation helpful? Give feedback.
-
|
yes I'm aware with socket....mostly over my head but I get it's function ..allows reading input and passing arguments via the command line interface. Mainly was just posting in case others might have use of it. Same with this lua script. Here's the script I now use. Say one likes a style, font size, font, colors, etc. so they set it to be default. Then everytime they open new audio/video it'll be that font/ style. But if one opens a playlist and switching to new media keeps it to the current font /style so this allows one to apply the default font/style that's set in mpv.conf edit: removed sub-back-color as it's an alias for sub-shadow-color input.conf substylecolor_setdefault.lua |
Beta Was this translation helpful? Give feedback.
-
|
so it saves the values in mpv.conf then I switch to another font/color style I can easily revert back to my default / favorites font/color style |
Beta Was this translation helpful? Give feedback.



d-e cycle-values script-opts 'uosc-color="color=foreground=92a7f0,foreground_text=000000,background=001c7f,background_text=ffffff"' 'uosc-color="color=foreground=f39f78,foreground_text=000000,background=b1400d,background_text=ffffff"' 'uosc-color="color=foreground=85f991,foreground_text=000000,background=12711c,background_text=ffffff"' 'uosc-color="color=foreground=f78781,foreground_text=000000,background=8c0800,background_text=ffffff"' 'uosc-color="color=foreground=d791f2,foreground_text=000000,background=591e71,background_text=ffffff"' 'uosc-color="color=foreground=f8984a,foreground_text=000000,background=592f0d,background_text=ffffff"' 'uosc-color="color=foreground=f487d3,foreground_te…