dsh-wallpaper: Local Wallpaper Plugin for DSH Web GUI

Introduction

The DeepSeek Harness (DSH) Web GUI typically uses a solid color or theme-provided styles as its default background. If you want to use local images or short videos as the background of the conversation interface without changing the theme, with the ability to switch and rotate them on a schedule from the settings, you need a local wallpaper plugin hooked into the web profile. dsh-wallpaper is maintained by whf-jx and categorized as “Fun Customization” in the community catalog. Materials are not uploaded to external networks; both state and files remain on the local machine under $DSH_HOME/wallpaper/.

The following sections cover its positioning, capabilities, installation, and usage highlights. For authoritative facts, refer to the GitHub repository README and package.json.

What Is This

dsh-wallpaper provides local image / video wallpapers for the DSH Web GUI: upload materials, switch manually, auto-rotate on an interval, all configured through the settings UI with immediate effect. It does not rely on online services; at runtime it is injected via shell.overlay and settings.section, and only supports web-based DSH GUIs.

The plugin requires DSH engine version >=0.1.2-alpha.1 (see dsh.engines in package.json). The current package version is 0.1.0, licensed under MIT. Community catalog page: https://www.skillhub.cn/plugins/whf-jx/dsh-wallpaper.

Core Features

Material Types and Playback

  • Images: .jpg, .jpeg, .png, .webp, .gif, .bmp, .avif
  • Videos: .mp4, .webm, .ogv, .mov, .m4v, automatically muted and looped; the HTTP layer supports Range requests for videos, enabling browser streaming playback

Switching and Rotation

  • Manual: pick a material, previous / next
  • Timed rotation: 7 interval presets (30 seconds, 1 minute, 5 minutes, 30 minutes, 1 hour, 3 hours, 6 hours), individually toggleable; the timer runs on the Host, so it keeps progressing even when the page is closed
  • Random order: rotate in sequence or draw randomly

Look and Readability

  • Wallpaper sharpness (5–100%), text dimming (0–90%), background blur (0–60px), fill mode (cover / contain / stretch / tile; tiles are not supported for videos, which use cover)
  • When a dark theme is active and the wallpaper is enabled, three text color levels are automatically brightened to improve body text readability
  • The README recommends for dark themes: sharpness 15–20%, text dimming 60–70%, background blur 10–15px

Persistence

Enabled state, interval, current material, etc., are written to $DSH_HOME/wallpaper/index.json (default ~/.dsh/wallpaper/). Raw bytes live in the images/ directory.

Installation and Activation

The README notes that this plugin is not yet published to npm; it recommends installing from the GitHub source via dsh plugin. After installation, you must restart DSH once (the plugin discovery is cached per startup), then refresh the page.

dsh plugin --profile web add github:whf-jx/dsh-wallpaper

The plugin runs with the permissions of the current DSH process; before installing, review the repository source code and the MIT license yourself to confirm it meets your environment policy. This package has zero runtime dependencies, and the profile’s package.json does not need to register it additionally.

Typical Usage

  1. Open Settings → Local Wallpaper.
  2. Use “Upload images / videos” to multi-select local files; they appear in the material list immediately after upload.
  3. Turn on the “Enable wallpaper” master switch; if you need rotation, also enable “Auto rotate” and choose the interval and whether to use “Random order”.
  4. Adjust sharpness, dimming, blur, and fill mode as needed; when the master switch is off, the background layer is fully unloaded (including video decoding).
Control Description
Enable wallpaper Master switch; when off, no GPU decoding or similar resources are used
Auto rotate Independent switch; when off, the current material is fixed
Rotation interval 7 presets from 30 seconds to 6 hours
Upload Client uploads files one by one; single file limit 64 MB, per-request limit 96 MB

Deleting a material requires a two-step confirmation (the first click arms it, and it auto-disarms after about 4 seconds), preventing accidental deletion of large files.

Data and API (Troubleshooting Reference)

Data directory structure:

$DSH_HOME/wallpaper/
  index.json          # state and material list
  images/             # raw materials
  trace.log           # optional, requires environment variable DSH_WALLPAPER_TRACE
  client-probe.json   # optional, client self-check snapshot

The HTTP route prefix is /api/dsh-wallpaper, including GET /state, GET /revision (lightweight polling), GET /image/<id>, POST /upload, POST /config, and more. When uploading videos, if ffmpeg is available on the system PATH, it performs a best-effort transcode to 1600×900 (among other settings) before storage; if it is missing or fails, the original file is kept. Set DSH_WALLPAPER_NO_TRANSCODE=1 to disable transcoding.

Use Cases and Caveats

Suitable for: users who run the DSH Web GUI locally long-term, want private materials as backgrounds, and need timed or random wallpaper changes without relying on third-party image hosting.

Caveats:

  • Web profile only; other GUI forms are not applicable.
  • Video wallpapers continuously consume GPU decoding; upload transcoding can reduce the bitrate to around 3 Mbps (depends on ffmpeg).
  • No thumbnails; videos in the list are previewed with preload="metadata" and play on hover.
  • The community catalog (SkillHub) is an independent site and has no official affiliation with DeepSeek / HiThink; the DSH ecosystem itself follows an “everything is a plugin” extension model.

Links

羽毛球分组比赛记分
小程序二维码

欢迎使用《羽毛球分组比赛记分》微信小程序

Xiaoye