dexeonify / mpv-config

My personal mpv config and user scripts. :)
69 stars 7 forks source link

[Feature Support] Change the display of each area's object when hovering over the screen #10

Open BoscoFZ opened 1 year ago

BoscoFZ commented 1 year ago

Currently, when I hover over the screen, both the osc and windowcontrol/tile areas are displayed simultaneously. So, my idea is whether there is a way to adjust it so that only the part that I am hovering over is displayed. For example, when I hover over the bottom part, only the osc part will be displayed, and when I hover over the top part, the windowcontrol/title will be displayed. If I do not hover over either the osc or windowcontrol/title areas, nothing will be displayed. Can you help me adjust this? Thank you very much.

dexeonify commented 1 year ago

There is an issue about this in the upstream repo (https://github.com/maoiscat/mpv-osc-modern/issues/20). It’s close as completed but both the window controls and the OSC still displays simultaneously. Might require a little bit more digging to do what you want. For now, you can set deadzonesize=1 in osc.conf to achieve this:

If I do not hover over either the osc or windowcontrol/title areas, nothing will be displayed

By the way, might I introduce you to uosc? It’s an OSC that does exactly what you want and I myself have fully switched to it. This repo is in “maintenance” mode now.

BoscoFZ commented 1 year ago

Thank you very much for your help in solving the issue of mouse movement between areas. Now the only problem is that both the window controls and the OSC still display simultaneously. My idea is also derived from UOCS, but since the UOCS skin incorporates many elements, I would like to use a skin that can be customized according to my preferences for ease of use.