Skip to content

wallpaper: live video wallpapers through mpvpaper - #3627

Closed
matsuzaka-yuki wants to merge 1 commit into
duxlabs-dev:masterfrom
matsuzaka-yuki:live-wallpapers
Closed

matsuzaka-yuki wants to merge 1 commit into
duxlabs-dev:masterfrom
matsuzaka-yuki:live-wallpapers

Conversation

@matsuzaka-yuki

Copy link
Copy Markdown

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
    mpvpaper for the video and hands the theme a still frame of it, because
    matugen 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 the
    picker grid and the cycler list them.
  • applyWallpaperPath() is the old body of setWallpaper(), split out so the
    frame 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 monitor
    name threaded through: the cycler knows it, setWallpaper() does not.
  • The still frame comes from ffmpeg, which is a new runtime dependency. If
    core/ already has a way to grab a frame, that would be better.
  • The frame is cached at one path, so per-mode (light/dark) wallpapers would
    overwrite each other.
  • I could not build or run DMS itself, only qmllint (clean) and an import
    check. 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.

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.
@apollo79

apollo79 commented Nov 2, 2026

Copy link
Copy Markdown
Member

@purian23 we have wallpaper support using a different implementation now, this can be closed I think?

@purian23 purian23 closed this Nov 2, 2026
@purian23

purian23 commented Nov 2, 2026

Copy link
Copy Markdown
Member

Thanks @matsuzaka-yuki for getting this started, @apollo79 is correct, video wallpapers has just been implemented for the next release!

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

Successfully merging this pull request may close these issues.

3 participants