# Introduction
DSH Desktop is based on Electron. On Windows, the main process imposes a hard limit on window materials: `acrylic` and `mica` are silently changed to `off`, while `transparent` directly throws an error. Therefore, it is impossible to achieve a desktop wallpaper showing through the window via "true window transparency" or simply by modifying CSS.
The community plugin **dsh-desktop-transparency** (maintainer [biotechdrli-byte](https://github.com/biotechdrli-byte)) takes a different approach: it reads the system wallpaper, pins it to the bottom layer of the UI according to screen coordinates, and then adjusts the opacity for five distinct UI regions. Visually, this approximates transparency without crashing the desktop app. This article introduces its principles, installation, and daily usage. For facts, please refer to the [GitHub README](https://github.com/biotechdrli-byte/dsh-desktop-transparency). The plugin is categorized as a "Fun Makeover" in the [SkillHub directory](https://www.skillhub.cn/plugins/biotechdrli-byte/dsh-desktop-transparency).
# What is this
**dsh-desktop-transparency** is a partitioned transparent wallpaper theme plugin for **DSH Desktop (Windows)** (npm package name `dsh-desktop-transparency`, version **0.7.0** corresponding to the current README, MIT license).
In short: it aligns the system wallpaper with the screen and lays it at the bottom layer of the window. The left column, conversation area, top bar, right column, and floating layers each have independent opacity settings, plus blur and darkening. This makes the interface look like it floats on the desktop, rather than having a static background image pasted inside the window.
macOS natively supports window transparency; the README states this plugin is not needed there. See "Applicability and Limitations" below for platforms and tested versions.
# Core Capabilities
## Screen-Aligned Wallpaper Layer
The plugin does not lay the image based on window size, but pins it to the **screen coordinate system**:
- Element size = logical screen size (SW × SH)
- `background-size` = SW px × SH px (consistent with Windows "Fill")
- Element displacement = `(-window.screenX, -window.screenY)`
When the window moves or resizes, the wallpaper remains stationary relative to the screen, simply revealing more or less of it. The README uses the continuous reef and sand textures inside and outside the border of a non-maximized window as evidence of alignment.
## Independent Opacity for Five Regions
`opacity` multiplies down the DOM tree; if the entire window's transparency is lowered uniformly, popups and menus will fade together. The plugin sets opacity separately for five **sibling regions**, with default values:
| Region | Default |
| --- | --- |
| Left Column | 0.81 |
| Conversation Area | 0.60 |
| Top Bar | 0.86 |
| Right Column | 0.66 |
| Floating Layer / Modal | 0.96 |
The wallpaper blur defaults to **29px**, and the background darkening defaults to **0.18**. The root node of the middle region yields its solid background color, delegating the background to the header and body respectively, so that the top bar and conversation area can be adjusted separately (see the CSS explanation in the README's "Structural Yielding" section).
## Control Panel and Persistence
A floating panel in the bottom right corner: drag the title to move it, `Ctrl+Alt+H` to collapse/expand; when collapsed, a **⚙** dot remains in the bottom right to reopen it.
Ten controls: opacity for the five regions (0.05–1.00), wallpaper blur (0–60 px), background darkening (0–1.00), alignment offset X / Y (-80–+80 px), as well as reset offset and restore all. Adjustments are written to `localStorage` (key `dsh-dtp-state`) and persist after restart.
Common shortcuts:
| Shortcut | Function |
| --- | --- |
| `Ctrl+Alt+H` | Show / hide panel |
| `Ctrl+Alt+←→↑↓` | Fine-tune alignment by 1px (add `Shift` for 10px) |
| `Ctrl+Alt+D` | Export UI structure snapshot |
## Host-side: Wallpaper and Routing
`lib/index.js` is responsible for discovering the current Windows desktop wallpaper (prioritizing `%APPDATA%\Microsoft\Windows\Themes\TranscodedWallpaper`, otherwise falling back to the original image path in the registry). It serves the image to the page via a local loopback HTTP (routes include `/dsh-bg/info`, `/dsh-bg/wallpaper`). Custom routes pass through the host's trust barrier; unauthorized requests return **401**. The wallpaper is polled every 5 seconds based on file mtime, generally catching up within 5 seconds after a wallpaper change.
# Installation and Enablement
The plugin runs with the permissions of the current DSH process. Before installing, it is recommended to review the [repository source code](https://github.com/biotechdrli-byte/dsh-desktop-transparency) and LICENSE.
## npm (Recommended)
```sh
dsh plugin --profile desktop add dsh-desktop-transparency
Installed from npm; the README notes it includes SLSA provenance signatures. After installation, fully quit DSH Desktop and reopen it (refreshing the page is not enough).
From GitHub¶
dsh plugin --profile desktop add github:biotechdrli-byte/dsh-desktop-transparency
Uninstall¶
dsh plugin --profile desktop remove dsh-desktop-transparency
Typical Usage¶
- Install and restart DSH Desktop as described in the previous section.
- Drag the window to be non-maximized and observe the window border: the wallpaper inside the frame should connect seamlessly with the desktop wallpaper outside the frame. On most machines, initial use requires calibrating by 1–2px: use the panel’s “Alignment Offset X / Y” or
Ctrl+Alt+Arrow keys(1px step). The README provides reference valuesX = -7.5,Y = -38.5for Windows, 125% scaling, and DSH Desktop 2.0.18, but this does not mean your environment will be the same; you must calibrate it yourself. - Adjust the opacity, blur, and darkening of the five regions according to your reading habits; if you need to troubleshoot region selectors, press
Ctrl+Alt+Dto export a snapshot to~/.dsh/dsh-dtp-dom.json.
If there is no response after installation, you can use the README’s suggestion to check if the local route is registered (401 means the route exists and the trust barrier is working; 404 means the plugin is not loaded, so confirm the bundle and whether you truly restarted). See %USERPROFILE%\.dsh\profiles\desktop\.dsh-desktop-runtime.json for the port:
curl -i http://127.0.0.1:<port>/dsh-bg/info
Applicable Scenarios and Notes¶
Who it is for: Users on Windows using DSH Desktop who want a “transparent to the desktop” look for the interface and are willing to fine-tune alignment and regional opacity; those who accept the plugin reading the local wallpaper and displaying it locally via loopback HTTP.
Compatibility (README Table):
| Item | Value |
|---|---|
| Platform | Windows |
| DSH Desktop | Tested with 2.0.18 / Kernel 0.2.1-rc.2 |
| Desktop Shell Form | compatibility (no .dshDesktop* shell) |
| Node | ≥ 20 |
| Runtime Dependencies | Zero |
The region selectors are bound to hash-like class names in the DSH compiled artifacts, so they may fail after a DSH upgrade. When this happens, a ⚠ will appear after the corresponding region name in the panel; it will not fail silently. You can follow the “Compatibility” section in the README to modify the sel in REGIONS at the top of lib/client.js and restart.
Known Limitations: Windows only; multi-monitor setups are calculated based on a single primary screen; if the offset differs between maximized and restored states, you need to switch manually (not yet implemented); it may conflict with background layers of other theme plugins, so only one should be enabled at a time.
Privacy: It reads the Windows wallpaper, serves the image via local loopback, and can write a structure snapshot to ~/.dsh/dsh-dtp-dom.json via Ctrl+Alt+D or approximately 6 seconds after startup; the README states it does not initiate external network requests or upload session content.
Conclusion¶
When DSH Desktop on Windows cannot achieve true window transparency, dsh-desktop-transparency uses a screen-aligned system wallpaper plus partitioned semi-transparency to turn “looking like transparency to the desktop” into an adjustable desktop theme. The DeepSeek Harness ecosystem emphasizes “Everything is a plugin”; SkillHub is a community directory and has no official affiliation with DeepSeek / High-Flyer.
- Directory Page: https://www.skillhub.cn/plugins/biotechdrli-byte/dsh-desktop-transparency
- Source Code and Full Documentation: https://github.com/biotechdrli-byte/dsh-desktop-transparency
```