Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow cycling through OSC visibility mode #7

Merged
merged 2 commits into from
Feb 22, 2022
Merged

Allow cycling through OSC visibility mode #7

merged 2 commits into from
Feb 22, 2022

Conversation

dexeonify
Copy link

mpv sets the DEL key as the default keybinding to toggle the OSC. This never took effect because visibility_mode() doesn't understand/accept "cycle" as its parameter. This patch fixes the issue and allows cycling the OSC visibility between never, auto and always. This was available in osc.lua, but for some reason removed in mordenx.lua.
Fixes one of the issues mentioned in #6.

The 2nd commit, "Expose osc-visibility via shared-script-properties" allows scripts to tell what the current state of the OSC is. This was added in mpv-player/mpv@d2dd4ca.

@dexeonify dexeonify mentioned this pull request Feb 20, 2022
@cyl0 cyl0 merged commit c791589 into cyl0:main Feb 22, 2022
@dexeonify dexeonify deleted the osc-visibility branch February 22, 2022 14:52
cyl0 added a commit that referenced this pull request Feb 28, 2022
@cyl0 cyl0 mentioned this pull request Feb 28, 2022
cyl0 added a commit that referenced this pull request Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants