aether icon indicating copy to clipboard operation
aether copied to clipboard

Video/GIF wallpapers only display on one monitor in multi-display setups

Open SVIGHNESH opened this issue 5 months ago • 1 comments

When a video (.mp4 / .webm) or .gif is selected as the wallpaper, it appears on only one monitor — either the built-in or the external display, depending on which one the compositor happens to pick. Static image wallpapers correctly cover all monitors.

Steps to Reproduce

  1. Connect a second monitor (tested on Hyprland / Wayland, dual display).
  2. Apply a static image as wallpaper → shows on both displays.
  3. Apply a video or GIF wallpaper via the local browser → shows on only one display.

Expected Behavior

Animated wallpapers should cover every connected monitor, the same way static image wallpapers do.

Actual Behavior

The animated wallpaper renders on a single display only. The other monitor keeps its previous / blank background.

Root Cause

The two wallpaper paths handle multiple outputs differently:

  • Static images are applied with swaybg -i ... -m fill (internal/theme/applier.go). With no -o flag, swaybg creates a background layer surface on every output, so it covers all monitors.
  • Animated wallpapers are rendered by the aether-wp service (cmd/aether-wp/main.go). It calls gtk_layer_init_for_window() but never gtk_layer_set_monitor(), and it creates only a single GTK layer-shell window. A Wayland layer-shell surface maps to exactly one output, so the compositor places that lone surface on a single display.

Suggested Fix

Enumerate all monitors via gdk_display_get_monitor(display, i) and create one background layer-shell window + pipeline per monitor, each pinned with gtk_layer_set_monitor() — mirroring swaybg's per-output behavior. Both the video (run_wallpaper) and GIF (run_gif) paths need this.

Note: this means N monitors = N decodes, which is inherent to layer-shell (a surface cannot span multiple outputs).

Environment

OS Arch Linux (Omarchy)
Compositor Hyprland (Wayland)
Displays 2 (built-in + external)

Contributing

I've already implemented and locally tested a fix along the lines described above (per-monitor layer windows for both the video and GIF paths, with per-output GPU → CPU fallback). I'd be happy to open a pull request for this — just let me know if the approach looks good or if you'd prefer a different direction.

SVIGHNESH avatar Jun 09 '26 16:06 SVIGHNESH

Hi. I have removed the video / gif as wallpaper functionality from Aether.

bjarneo avatar Aug 28 '26 06:08 bjarneo