sakuraaa667/dsh-wallpaper-engine 预览 preview

sakuraaa667/dsh-wallpaper-engine

Skin皮肤 Native原生 ⭐ 8 MIT UI & Themes界面与主题

将wallpaper集成到DeepSeek harness中,以便设置dsh的动态壁纸。

Project Overview项目介绍

dsh-wallpaper-engine is a DeepSeek Harness plugin that integrates locally downloaded Wallpaper Engine content (Steam Workshop app 431960 and local projects directories, with multi-library support) as the web UI background. It auto-discovers wallpapers, rescans every 30 seconds, lets users browse thumbnails, search, and apply with one click; videos stream via <video muted loop>, images use the highest-resolution original in the folder with fit/contain modes, plus panel dim and overlay sliders. Selection persists to $DSH_HOME/dsh-wallpaper.json, with HTTP routes for list/config/preview/file, using scan-generated IDs to prevent path traversal. Caveat: scene- and web-type wallpapers cannot render in-browser and fall back to preview images.

dsh-wallpaper-engine 是 DeepSeek Harness 插件,把本机 Wallpaper Engine 已下载的壁纸(Steam 创意工坊 app 431960 与本地 projects 目录,含多 Steam 库)接入 Web 界面作为背景,自动发现并每 30 秒静默重扫,缩略图浏览、搜索、一键应用,视频以 <video muted loop> 流式播放,图片选用目录内最高分辨率原图并支持铺满/完整显示两种模式,附带面板暗化与背景压暗滑杆,选择持久化到 $DSH_HOME/dsh-wallpaper.json,提供 /dsh-wallpaper/list|config|preview|file 路由且不参与路径拼接以避免穿越。场景与网页型壁纸无法实时渲染,会回退为预览图。

Or use CLI install (for developers)或使用命令行安装(适合开发者)

CLI Install命令行安装

dsh plugin --profile web add github:sakuraaa667/dsh-wallpaper-engine

sakuraaa667/dsh-wallpaper-engine 加入你的 DSH 配置(web profile)即可启用。

READMEREADME

dsh-wallpaper-engine

把本机 Wallpaper Engine 里已经下载的壁纸接入 DeepSeek Harness,作为 Web 界面 的背景(动态壁纸视频也支持)。Use wallpapers downloaded by Wallpaper Engine as the DeepSeek Harness web background.

效果预览

DeepSeek Harness 壁纸背景效果

功能

  • 自动发现 Wallpaper Engine 已下载内容:
    • Steam 创意工坊壁纸(app 431960,自动读取 libraryfolders.vdf,支持多 Steam 库);
    • 本地项目(projects/myprojectsprojects/defaultprojects)。
  • 设置 → 壁纸 Wallpaper Engine 中浏览缩略图、搜索、一键使用;
  • 自动同步:打开壁纸页时每 30 秒静默重扫磁盘,Wallpaper Engine 里新下载的壁纸会自动出现(也可点「刷新」立即更新);
  • 视频壁纸以 <video> 方式播放(muted + loop);图片壁纸优先使用目录内最高分辨率原图(而非小尺寸预览图),并支持「铺满 / 完整显示」两种适配模式(完整显示带毛玻璃背景填充);
  • 「面板暗化(0–100%)」与「背景压暗(0–50%)」两个滑杆控制可读性;
  • 选择会持久化到 $DSH_HOME/dsh-wallpaper.json,重启 / 刷新后自动恢复。

安装

dsh 安装目录(或任意目录)执行:

dsh plugin --profile web add file:C:\path\to\dsh-wallpaper-engine

或手动方式(与 dsh plugin add 等价):

  1. $DSH_HOME/profiles/webpnpm add file:<本插件绝对路径>

  2. 在该 profile 的 cordis.patch.yml 中加入:

    - insert:
        - id: dsh-wallpaper-engine
          name: dsh-wallpaper-engine
    
  3. 刷新浏览器页面(若服务端未热加载,重启 dsh web)。

使用

  1. 打开 DeepSeek Harness Web 界面;
  2. 进入 设置 → 壁纸 Wallpaper Engine
  3. 点击任意壁纸卡片即可设为背景,再次点击「清除背景」恢复默认。

配置

插件支持可选配置(在 profile 的 cordis.patch.yml 中以 id 覆盖):

- id: dsh-wallpaper-engine
  config:
    workshopDir: "D:\\steam\\steamapps\\workshop\\content\\431960"
    projectsDir: "D:\\steam\\steamapps\\common\\wallpaper_engine\\projects\\myprojects"

也支持环境变量(; 分隔多路径):

  • DSH_WALLPAPER_WORKSHOP_DIR — 创意工坊壁纸目录;
  • DSH_WALLPAPER_STEAM_DIR — Steam 根目录(用于推导 workshop 与本地项目)。

HTTP 路由

路由 说明
GET /dsh-wallpaper/list 壁纸列表 + 检测到的来源目录
GET /dsh-wallpaper/config 当前持久化的选择
POST /dsh-wallpaper/config 持久化选择 {id, dim, overlay}
GET /dsh-wallpaper/preview/<id> 缩略图
GET /dsh-wallpaper/file/<id> 壁纸媒体文件(支持 Range,用于视频)

所有 id 均通过扫描生成的映射查找,不参与路径拼接,避免路径穿越。

限制

  • 场景型(scene)与网页型(web)壁纸无法在浏览器背景中实时渲染,回退为预览图;
  • 视频通过本机 HTTP 流式传输,仅本机访问(默认 loopback)。
上一个 Prev skills-management 下一个 Next dsh-promotion-toolkit