progwolff / moc-mpris

MPRIS2 support for local or remote instances of MOC - music on console
GNU General Public License v3.0
9 stars 2 forks source link

how to interface #3

Closed grenzionky closed 4 years ago

grenzionky commented 4 years ago

does this work with playerctl? cuz i cant get it to work… i tried compiling it myself, or from the aur, but it doesnt seem to do anything. i set up the systemd service as the instructions say and i got the green light from systemctl status, so idk whats wrong. i dont see moc listed as a player in playerctl -l

progwolff commented 4 years ago

Works fine for me... What is the output of /usr/lib/moc-mpris/moc_mpris.sh?

grenzionky commented 4 years ago
~ > /usr/lib/moc-mpris/moc_mpris.sh
['-i']
None@None
~ > /usr/lib/moc-mpris/moc_mpris.sh -i
['-i']
-i@-i
progwolff commented 4 years ago

This indicates that there is no instance of moc playing music.

grenzionky commented 4 years ago

i see turning on a song in moc, and then running /usr/lib/moc-mpris/moc_mpris.sh does make it work

is there a way to make it automatically run when a song starts? or keep it running in the background while moc is running? like by doing something like alias mocp="mocp & /usr/lib/moc-mpris/moc_mpris.sh"?

also, the moc_mpris service makes no difference whether its running or not. it works just fine without it

progwolff commented 4 years ago

If you want to run the script in background to auto-detect moc, just enable the service. It does exactly this: restarting the script until moc is found.

xxxserxxx commented 1 year ago

I'll just note that this means the project has a hard dependency on systemd.