Skip to content

About

Live wallpaper app for macOS: video, HTML and Metal shader wallpapers, animated lock screen, and Wallpaper Engine (Steam Workshop) import. Native Swift, Apple Silicon, no Xcode needed.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Latest commit

 

History

29 Commits

Folders and files

Repository files navigation

Livewall

A lightweight Wallpaper Engine–style live wallpaper app for macOS, written in Swift (SwiftPM, no Xcode required).

Features

  • Video wallpapers (.mp4, .mov, .m4v) looped seamlessly with AVPlayerLooper.
  • Web wallpapers: a local .html file, a folder containing index.html, or any http(s) URL.
  • Metal shader wallpapers with time, resolution and live mouse position (no Accessibility permission needed).
  • One click-through window per display at desktop level — below Finder icons, above the system wallpaper, on every Space.
  • Automatic pause when the desktop is fully covered, the screen sleeps or locks, Low Power Mode is on, or (optionally) on battery.
  • Menu bar app (no Dock icon): Pause, Options… (opens the library window), Check for updates and Quit. Launch-at-login.
  • English and Spanish UI, following the macOS language (translations in Localization/).
  • Thumbnail cards in the library, with a right-hand live preview for videos, web wallpapers and shaders. Single-click to preview; use Apply or double-click to change the desktop.
  • Workshop details in the same side panel, with the author's animated GIF preview before downloading. Downloads stay in the library until applied, and downloaded items can be previewed live.
  • Workshop pagination with a fixed Previous/Next bar, page and result counts, and cached pages for instant backward navigation.
  • Lock screen: renders the current video or shader to a 4K HEVC loop and swaps it into the Aerial selected in System Settings (original kept as a backup, restorable).
  • Steam Workshop: searches Wallpaper Engine items through the Steam Web API and downloads video/web ones with DepotDownloader after a one-time QR sign-in with the Steam app (requires owning Wallpaper Engine). Scene and application items are not supported.

Resource usage

Measured on a MacBook Pro M1 (8 GB, macOS 27) on battery, with a 2560×1436 H.264 video wallpaper:

Livewall running Livewall quit
Battery draw (whole Mac, idle desktop) ~4.0 W ~3.1 W
Livewall process ~6 % CPU, ~75 MB RAM —
Hardware video decoder (VTDecoderXPCService) ~6 % CPU, ~120 MB RAM —

So a video wallpaper costs roughly +1 W while the desktop is visible. Playback pauses (and that cost drops to near zero) when a window covers the desktop, the screen is locked or asleep, in Low Power Mode, and optionally on battery. Shaders cost more or less depending on the shader and the FPS setting.

Build

./scripts/test.sh           # unit tests, including compiling the built-in shaders
./scripts/bundle-app.sh     # produces build/Livewall.app
open build/Livewall.app

Install and updates

The easiest way: paste this in Terminal. It installs the latest release in Applications and opens it, with no security warning (files downloaded by curl are not flagged by macOS). Run it again any time to reinstall.

curl -fsSL https://raw.githubusercontent.com/JohnTenno/livewall-macos/main/scripts/install.sh | sh

Or manually: download Livewall.zip from the latest release, unzip it and move Livewall.app to Applications.

The app is not notarized yet, so the first launch shows "Apple could not verify Livewall is free of malware". To open it, either:

  • open it once, close the warning, then go to System Settings → Privacy & Security and click Open Anyway; or

  • before the first launch, remove the download flag in Terminal:

    xattr -dr com.apple.quarantine /Applications/Livewall.app

This is only needed once: in-app updates do not trigger the warning again.

Livewall checks GitHub for a newer release at launch (or when you choose Check for updates in the menu bar) and offers "Update to … and restart".

To publish a release (clean git tree, gh logged in):

./scripts/release.sh 0.2.0

With a paid Apple Developer account, set SIGN_IDENTITY (Developer ID) and NOTARY_PROFILE (a notarytool keychain profile) to sign and notarize the release; the warning above then becomes the normal "downloaded from the internet" prompt. See the header of scripts/release.sh.

Shader contract

A .metal file must define:

float4 wallpaper(float2 fragCoord, float2 resolution, float time, float2 mouse)

fragCoord and mouse are in pixels with the origin at the bottom-left (Shadertoy convention). time is in seconds and freezes while paused.

Web wallpaper events

Pages receive livewall-pause and livewall-play events on window so they can stop their own animation loops.

Lock screen

Since macOS 26, Aerials are cached per user in ~/Library/Application Support/com.apple.wallpaper/aerials/videos/<assetID>.mov. Livewall replaces that file (copying the original extended attributes so it is not re-downloaded), backs the original up to ~/Library/Application Support/Livewall/AerialBackups/, and restarts WallpaperAgent. Unofficial: a macOS update may restore the original.

The replacement is re-encoded automatically, because the lock screen player is picky:

  • Scaled and cropped to 3840×2160 so it fills the screen.
  • Looped until it is at least as long as Apple's original; the player resumes at fixed points of interest and freezes if the movie ends earlier.
  • HEVC Main10 at 240 fps with temporal sub-layers, like Apple's Aerials; without them the player fails when it ramps down and the screen turns black.

The slow-motion when locking and unlocking is macOS's own Aerial transition; 240 fps keeps it smooth. Tested for days of lock/unlock cycles on a MacBook Pro M1 with macOS 27.

Completed lock-screen conversions are kept in ~/Library/Application Support/Livewall/LockScreenExports/. Reapplying a wallpaper reuses its saved conversion, including after relaunching Livewall or restoring Apple's original. The source content, shader recording settings, encoder recipe and required Aerial duration identify each conversion. A changed source/recipe or missing cached file triggers a new conversion. Deleting a wallpaper from the library also removes its saved conversions. Failed exports are not cached. Videos converted by older versions need one initial conversion because those versions did not retain the processed file.

Steam Workshop

  1. Create a Web API key at https://steamcommunity.com/dev/apikey and paste it in Settings → Steam (stored in the Keychain).
  2. Press "Install the Steam downloader" (DepotDownloader 3.4.0, ~80 MB from its GitHub release), then "Sign in with Steam" and scan the QR code with the Steam mobile app (Steam Guard → QR). Livewall never sees your password.
  3. DepotDownloader and its saved session live in ~/Library/Application Support/Livewall/depotdownloader/; "Sign out" deletes the session.

Web items get a small shim for Wallpaper Engine's JS API (wallpaperRegisterAudioListener stubs and default applyUserProperties).

Layout

Folder Contents
App/ Entry point and app delegate
Model/ Wallpaper, WallpaperKind, WallpaperSource, AppSettings
Library/ Persistent library (Application Support) and built-in shaders
Rendering/ WallpaperRenderer protocol, video/web/shader renderers, RendererFactory
Desktop/ Desktop windows per display, playback policy, DesktopController
LockScreen/ Aerial replacement, shader-to-video recorder, transcoder
Workshop/ Steam Web API client, DepotDownloader wrapper (QR sign-in), Wallpaper Engine project import
Update/ GitHub release check and self-update (AppUpdater)
UI/ SwiftUI menu bar, library and settings

About

Live wallpaper app for macOS: video, HTML and Metal shader wallpapers, animated lock screen, and Wallpaper Engine (Steam Workshop) import. Native Swift, Apple Silicon, no Xcode needed.

Topics

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages