DSH-Wallhaven-Wallpaper

Introduction

The DeepSeek Harness (DSH) Web GUI utilizes a series of --dsw-* design tokens, resulting in a fixed interface color scheme with no built-in option to set a wallpaper. Meanwhile, image sites like wallhaven.cc often fall into the category of “inaccessible via both browser and command line” in many network environments—typically due to DNS pollution or the need for specific proxies.

This plugin resolves both issues by migrating the search and image retrieval processes to the DSH host process. The browser does not need to access wallhaven directly; instead, the host side handles image fetching. The plugin communicates with the host via routes, thereby providing search and background setting capabilities within the settings page.

Installation and Activation

Before installation, please confirm the currently active profile. The desktop version only launches the desktop profile, while the command-line tool uses the web profile.

# DeepSeek Harness Desktop
dsh plugin --profile desktop add github:HaydenSmith1121/dsh-wallhaven-wallpaper

# dsh web / dsh tui CLI
dsh plugin --profile web add github:HaydenSmith1121/dsh-wallhaven-wallpaper

Restart the Harness after installation to apply the changes.

Core Features

  • Search & Set Background: Search wallhaven within the settings page and click a thumbnail to fill the interface background with the image.
  • Host-side Fetching: The host process handles API calls and image byte retrieval. The browser only communicates with local plugin routes, ensuring wallpapers display even if the browser is restricted by network policies.
  • Proxy Support: Supports automatic detection of available proxies (scanning common ports) or manual proxy address configuration. The host implements HTTP CONNECT tunneling and supports reusing the HTTPS_PROXY environment variable.
  • Download & Appearance: Supports one-click download of the original image to local storage; provides controls for opacity, blur, and darkening masks.
  • Rating Filter: Supports rating filtering via API Key; defaults to searching for SFW content only.

Typical Usage

  1. Open Settings -> Wallpaper.
  2. Enter keywords or select categories in the search box, and click a thumbnail to set the image as the background.
  3. To download the original image, click the “Download Original” button. The file will be saved to the default directory (e.g., Pictures/DSH Wallpapers) or a specified download directory.
  4. If encountering network issues, open Settings -> Access -> Proxy to manually enter a proxy address or click an auto-detection result.
  5. Adjust opacity, blur, and masks in the Appearance settings to balance wallpaper display with interface text readability.

Technical Details and Limitations

  • Compatibility Probing: The plugin probes for compatibility based on interfaces rather than version numbers. If an interface is missing, it will be displayed in the “Compatibility” section of the settings page, but this will not cause the plugin to fail.
  • Network Boundary: Only allows the domains w.wallhaven.cc and th.wallhaven.cc. Write operations (such as configuration changes and downloads) require same-origin requests to ensure security.
  • Resource Usage: Does not touch the model or affect the KV cache; zero runtime dependencies. Configuration files are stored in $DSH_HOME/storages/dsh-wallhaven-wallpaper/, and thumbnail caches are also stored in this directory.

Conclusion

This is a lightweight plugin that solves the need for changing wallpapers in restricted network environments by moving network requests from the browser to the host side.

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

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

Xiaoye