You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the project was based around osc.lua standards I wanted to ask something.
The way bottomhover and bottomhover_zone works is similar to the way mpv handles the deadzonesize option in stock osc.lua.
So do you think we could squash the bottomhover options into just one? Remove the toggle completely and have deadzone values similar to previous Modernx forks:
Hmm. How would it be different though? I still don't quite understand the math behind it. In essence it makes everything between mouse position and osc top a deadzone in a negative value?
Honestly not sure about the math portion, but according to docs
0 means the OSC will always popup with mouse movement in the window, and 1 means the OSC will only show up when the mouse hovers.
I guess it depends on what implementation you prefer since the end result is kinda similar to what we have. Deadzonesize=0.5 seems similar to bottomhover_zone=500 or so.
Interesting. From a user's standpoint, which method do you think would be preferable?
I'll setup a no-config with osc.lua when I'm back home tomorrow to try it out, I honestly don't know which one is more user friendly, would love your take on it. If it's not a bother.
I couldn't sleep so I was comparing the two behaviors just now. The big difference that stands out to me is that deadzonesize also affects the window title and controls.
For example, deadzonesize=0.75, moving your mouse from center of the screen to the top bar triggers it more quickly. For deadzonesize=1 you need to hover the top bar directly. Same with bottom controls.
By design the bottomhover_zone doesn't care about showing the top bar in respect to your cursor position except when hovering it directly.
My initial impression is that deadzonesize is more user-friendly since it adjusts both the top and bottom zones simultaneously. It also follows what mpv uses which some users might already be familiar with.
That sounds really good. It would probably even make area based show easier. (ie: when you hover to top, only window title bar shows, not entire OSC).
I'll most likely apply this eventually. My delay would be for fixing up the old code, it's the next step right now, you'll start seeing PRs about a lot of logic simplifying and redundancy removals.
The real reason though, I need to understand how this works first. I glanced at it, it also accounts for video margins, which isn't applied yet on ModernZ.
Though if someone created a PR to apply all of that, I'd very much welcome it. Otherwise, it'll take some time.
The idea is 100% solid though. I just don't want to copy/paste blindly, because if something breaks, it'll apply unnecessary stress into trying to figure it out.
I completely understand you. Consider this a very low priority due to the complexity of the feature lol.
It would probably even make area based show easier.
This would be useful to have. I assume the code would involve a bit different math going that route instead. Could define set area boundaries or have fine adjustment for where the areas start and end.
Not sure yet what a good default behavior would be, but everyone here is free to discuss of course.
Activity
Samillion commentedon Nov 9, 2024
Good point. I've never actually tried the
deadzonesizeoption.Hmm. How would it be different though? I still don't quite understand the math behind it. In essence it makes everything between mouse position and osc top a deadzone in a negative value?
Keith94 commentedon Nov 9, 2024
Honestly not sure about the math portion, but according to docs
I guess it depends on what implementation you prefer since the end result is kinda similar to what we have. Deadzonesize=0.5 seems similar to bottomhover_zone=500 or so.
Samillion commentedon Nov 9, 2024
Interesting. From a user's standpoint, which method do you think would be preferable?
I'll setup a
no-configwithosc.luawhen I'm back home tomorrow to try it out, I honestly don't know which one is more user friendly, would love your take on it. If it's not a bother.Keith94 commentedon Nov 9, 2024
I couldn't sleep so I was comparing the two behaviors just now. The big difference that stands out to me is that deadzonesize also affects the window title and controls.
For example, deadzonesize=0.75, moving your mouse from center of the screen to the top bar triggers it more quickly. For deadzonesize=1 you need to hover the top bar directly. Same with bottom controls.
By design the bottomhover_zone doesn't care about showing the top bar in respect to your cursor position except when hovering it directly.
My initial impression is that deadzonesize is more user-friendly since it adjusts both the top and bottom zones simultaneously. It also follows what mpv uses which some users might already be familiar with.
Samillion commentedon Nov 9, 2024
That sounds really good. It would probably even make area based show easier. (ie: when you hover to top, only window title bar shows, not entire OSC).
I'll most likely apply this eventually. My delay would be for fixing up the old code, it's the next step right now, you'll start seeing PRs about a lot of logic simplifying and redundancy removals.
The real reason though, I need to understand how this works first. I glanced at it, it also accounts for video margins, which isn't applied yet on ModernZ.
Though if someone created a PR to apply all of that, I'd very much welcome it. Otherwise, it'll take some time.
The idea is 100% solid though. I just don't want to copy/paste blindly, because if something breaks, it'll apply unnecessary stress into trying to figure it out.
As I mentioned to you before, I hate math. 😆
Keith94 commentedon Nov 9, 2024
I completely understand you. Consider this a very low priority due to the complexity of the feature lol.
This would be useful to have. I assume the code would involve a bit different math going that route instead. Could define set area boundaries or have fine adjustment for where the areas start and end.
Not sure yet what a good default behavior would be, but everyone here is free to discuss of course.