dsh-slide-gauge: A Small Sliding Beam Gauge Widget in DSH’s Bottom-Right Corner

In the DSH (DeepSeek Harness) Web or Desktop interface, we typically focus on the main conversation or code editing. Sometimes, however, a small, non-invasive visual component is needed to indicate status or simply for fun. dsh-slide-gauge is exactly such a widget.

Plugin Overview

This is a standard DSH bundle plugin maintained by user yvhcel888. Located at the bottom right corner of the interface, it allows users to drag a character avatar along a ruler. Depending on the position, it displays different statuses or triggers easter eggs.

Core Features

  • Floating Toggle: Located at the bottom right corner, presented as a circular “Ce” (Measure) button that does not obstruct the main interface.
  • Interaction & Determination: Press and hold the character avatar to drag it left or right; the ruler and character pan synchronously.
  • Status Determination: Continuously determines status based on the character’s left-side position: Liang-Shen / Liang-Sheng / Liang-Zi / Lao-Liang (Boundary values: 365 / 601 / 860, no gaps).
  • Boundary Easter Egg: Displays a “Whale-chan” (鲸鱼娘) when the pointer is dragged to the left or right boundaries (scene x ≤ 157 or ≥ 1048).
  • Memory Function: Uses localStorage (Key: dsh-slide-gauge/v1) to record the last position and restores it after a refresh or reopening.
  • Compatibility: The scene scales proportionally based on the original 1200×700 dimensions and supports both mouse and touch operations.

Installation and Activation

Install using the official command:

dsh plugin --profile web add dsh-slide-gauge
# Desktop profile:
dsh plugin --profile desktop add dsh-slide-gauge

After installation, restart the corresponding profile (dsh --profile web or restart DSH Desktop). Once the interface is open, you will see the “Ce” button in the bottom right corner.

Usage

  1. Click the circular “Ce” button in the bottom right corner to open the panel.
  2. Press and hold the character avatar in the center and drag it left or right.
  3. The red text at the top displays the current status.
  4. A “Whale-chan” appears when dragged outside the left or right dashed boundaries.
  5. If you close and reopen the panel, it will remain at the last dragged position.

Notes

  • Permissions & Risks: The plugin only makes same-origin requests to its own routes (/dsh-slide-gauge/*) to read local images and scripts; it does not call any third-party APIs; it involves no keys or credentials; and spawns no subprocesses.
  • File System: Read-only access to assets/ within the plugin package; optionally reads user-provided assets/liang.png.
  • License: MIT.

Conclusion

This is a lightweight, non-invasive widget suitable for users who wish to add a bit of interaction or visual feedback to their DSH interface. The source code and documentation are available on GitHub.

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

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

Xiaoye