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

Not Reading ~/.config/mpv/script-opts/osc.conf #17

Closed
blueray453 opened this issue Jul 28, 2022 · 8 comments
Closed

Not Reading ~/.config/mpv/script-opts/osc.conf #17

blueray453 opened this issue Jul 28, 2022 · 8 comments

Comments

@blueray453
Copy link

blueray453 commented Jul 28, 2022

There are few configs https://github.com/maoiscat/mpv-osc-modern#configuration

None of these take effect.

Even title = '1234', does not work.

% mpv -v -v
...
[cplayer] Error parsing option profile-cond (option not found)
[cplayer] /home/ismail/.config/mpv/mpv.conf:153: setting option profile-cond='p["idle-active"]' failed.
[cplayer] Error parsing option profile-restore (option not found)
[cplayer] /home/ismail/.config/mpv/mpv.conf:154: setting option profile-restore='copy-equal' failed.
@blueray453
Copy link
Author

One more issue. When playing video it shows pause button. When paused, it show play button.

@maoiscat
Copy link
Owner

  1. thanks and the configuration section is updated, it should be correct now.
  2. "title" is the text shown above the control pannle when paused, you can check it later.
  3. you may paste your config file to help debugging.
  4. to swap the play/pause button, goto line 1212 in the lua file , seeing something like "mp.get_property('pause') == 'yes'", and change yes to no.

@blueray453
Copy link
Author

Here is the mpv --log-file=output.txt.

output.txt

[   0.004][e][cplayer] Error parsing option profile-cond (option not found)
[   0.004][e][cplayer] /home/ismail/.config/mpv/mpv.conf:156: setting option profile-cond='p["idle-active"]' failed.
[   0.004][e][cplayer] Error parsing option profile-restore (option not found)
[   0.004][e][cplayer] /home/ismail/.config/mpv/mpv.conf:157: setting option profile-restore='copy-equal' failed.

When playing video, it shows |>. When video is paused, it shows ||. It should be opposite.

@maoiscat
Copy link
Owner

i mean attaching your mpv.conf to help tracking your error msg

please try paragraph 4 if you like an opposite play/pause display

@blueray453
Copy link
Author

I do not like an opposite play/pause display.

There is a bug in your script.

In regular video players, when playing a video it shows

playing-others

In regular video players, when a video is paused it shows

paused-others

with your script, when playing a video it shows

play

with your script, when a video is paused it shows

paused

Here is my total mpv.conf file:

no-osd-bar
osd-level=0
keep-open=yes
player-operation-mode=pseudo-gui
input-ipc-server=/tmp/mpv-socket
screenshot-directory=~/Pictures/
no-window-dragging
osc=no

I did not understand what paragraph 4 is? paragraph 4 of readme file or your script?

@blueray453
Copy link
Author

The play-pause issue is solved with

to swap the play/pause button, goto line 1212 in the lua file , seeing something like "mp.get_property('pause') == 'yes'", and change yes to no.

@maoiscat
Copy link
Owner

i dont see the profile-cond section in your mpv.conf. it is strange about your error msg.

anyway it only provides an apperance improvement when idle, it does no matter to the osc

@blueray453
Copy link
Author

Thank you very much. This solved my problem.

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

No branches or pull requests

2 participants