Repository navigation
wallpaper: live video wallpapers through mpvpaper - #3627
Closed
matsuzaka-yuki wants to merge 1 commit into
Closed
matsuzaka-yuki wants to merge 1 commit into
matsuzaka-yuki wants to merge 1 commit into
Conversation
setWallpaper is the one entry point the dash tab, the cycler and the IPC all use, so the video handling belongs there: run mpvpaper for the video and hand the theme one still frame of it, since matugen cannot read a video. Setting a still image afterwards stops the player. The cycler's file scan learns the video extensions so the picker grid lists them.
This was referenced Oct 30, 2026
Member
|
@purian23 we have wallpaper support using a different implementation now, this can be closed I think? |
Member
|
Thanks @matsuzaka-yuki for getting this started, @apollo79 is correct, video wallpapers has just been implemented for the next release! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the feature asked for in #1323.
What it does
SessionData.setWallpaper()— the one entry point the dash tab(
WallpaperTab.qml:197), the cycler (WallpaperCyclingService.qml:313/382/392)and the IPC all go through — now recognises video wallpapers: it starts
mpvpaperfor the video and hands the theme a still frame of it, becausematugen cannot read a video. Setting a still image afterwards stops the
player, which also fixes today's behaviour where a running video keeps
covering whatever DMS sets next while the palette comes from a picture nobody
can see.
WallpaperCyclingService.findCommand()learns the video extensions, so thepicker grid and the cycler list them.
applyWallpaperPath()is the old body ofsetWallpaper(), split out so theframe extraction can record the still without re-entering the branch that
stops the player.
Caveats — these are the parts I would want reviewed
mpvpaper "*"targets every output. A per-monitor setup needs the monitorname threaded through: the cycler knows it,
setWallpaper()does not.ffmpeg, which is a new runtime dependency. Ifcore/already has a way to grab a frame, that would be better.overwrite each other.
qmllint(clean) and an importcheck. The same logic runs on my machine through a separate wallpaper
switcher, which is where the behaviour was tested (CachyOS, niri, DMS 1.6.2).
That is why this is a draft.
Written with AI assistance (pi) at my direction; the caveats above are mine.