Skip to content

[FEATURE] Video Wallpaper Plugin, add IPC to re-apply last applied wallpaper #62

Description

@equalhealer

Submission checklist

  • I have searched existing issues and confirmed this has not been requested before.
  • I have checked existing pull requests for similar changes.

Feature type

New functionality

Feature summary

Add an IPC verb to the mpvpaper service that reapplies the last video (relaunching mpvpaper if it isn't currently running), rather than only supporting pause/resume of an already-running instance

Motivation / use case

I have i5-7200U + Nvidia 940mx Optimus laptop, and I've found that mpvpaper crashes the system on suspend when it is running. Fully stopping the wallpaper using noctalia msg plugin noctalia/mpvpaper:service all clear-all does prevent it, but currently there is no way to automatically start it back on unlock other than manually reapplying through picker. I've also tried pause/resume, but it still crashes the system, so mpvpaper needs to be killed to avoid it.

Proposed solution

Having an IPC verb for reapplying the wallpaper would help as a workaround for me and possibly others who experiences the same issue, allowing them to kill and relaunch mpvpaper as a hook:

on lock: noctalia msg plugin noctalia/mpvpaper:service all clear-all
on unlock: noctalia msg plugin noctalia/mpvpaper:service all reapply

(reapply is just an example verb)

Alternatives considered

By manually reapply with the picker on unlock, or using manual mpvpaper command on hooks instead, though this mean you can't use features offered by the plugin.

References / related projects

No response

Additional context

This is not the bug in Noctalia or the plugin, I can reproduce the same suspend failure with manually launched mpvpaper on CLI outside of Noctalia. Which is why I made this as feature request instead of bug report, might be helpful for others who had similar issues!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions