-
Notifications
You must be signed in to change notification settings - Fork 27
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
Chaining commandline arguments for multiple monitor #42
Comments
It is not possible to spawn multiple libmpv render contexts. https://github.com/mpv-player/mpv/blob/88918411f3533e75df0ddce2cdeb25ce55804589/libmpv/render.h#L543-L579 And spawning multiple mpv cores could get messy real fast for a small convenience.
Create a shell script to run as a service with forking the program as seen here:
|
Thanks for the explanation! If it is not possible to do due to
It works but that's not how My sole reason for this request is for automation, as dynamically managing multiple user services based on the current number of monitors is not practical. Running a one off script to spawn multiple
I only mentioned them as examples of CLI programs with multiple arguments chaining, so we can take reference on how to structure the CLI part (if it ever get implemented). What their functionalities are and how they work doesn't matter. Sorry that the wording was clear there. |
This request isn't impossible, but it is hacky. |
Almost forgot, the |
Currently if I want to set different videos for each monitor, I'll have to run multiple
mpvpaper
commands.What I want is something like this (basically only 1
mpvpaper
command to spawn all thempv
ones):The obvious benefit here is that I can manage
mpvpaper
as a user service for more fine-grained control (restart, stop, ...). For context,wlr-rand
andswaybg
have this design.The text was updated successfully, but these errors were encountered: