bryanchen463/dsh-desktop-pet ↗★ 1
dsh-desktop-pet
一只紫色圆球桌宠:眼睛始终盯着鼠标,可拖动,点击眨眼,空闲时随机做小动作。DSH 动态 Cordis 插件 + 无依赖网页版。 核心用途是为 DSH Web 界面增添趣味交互桌宠。适合想要美化工作区、增加趣味互动体验的用户。前置条件为使用 DSH Web 界面,且有权限写入 profiles 目录。
Other repositories with this package name
Install
This plugin has no verified bundle, or compatibility checks failed. Read the repository notes first. Read the full README ↗
README
Read the full README ↗在其他 DSH 部署中使用
三种引入方式,按「要不要让它一直存在」选:
| 方式 | 适用场景 | 生命周期 |
|---|---|---|
| 一、profile 插件 | 自己长期用、给团队装机、随 dsh 一起启动 | 跟进程走,重启后仍在 |
| 二、动态 Cordis 插件 | 临时试玩、改一行就想立刻看到效果 | 只在当前进程,重启即消失 |
| 三、无依赖网页版 | 非 DSH 的网页项目 | 页面级 |
方式一:安装到任意 DSH 部署(推荐,重启后仍在)
前置条件
- 目标是 DSH 的 Web 界面(
dsh --profile web),实测版本0.1.2-rc.1; - 有权限写入
${DSH_HOME:-~/.dsh}/profiles/(Windows 是%USERPROFILE%\.dsh\profiles\); - 只需要重启该 profile —— 不用改 host 组合、也不用动 agent preset:桌宠是纯浏览器 UI,落在 profile 补丁层
cordis.patch.yml里的一行客户端插件上。
第 1 步 · 找到 profile 目录
echo "${DSH_HOME:-$HOME/.dsh}" # Windows: echo $env:USERPROFILE\.dsh
ls "${DSH_HOME:-$HOME/.dsh}/profiles" # Web 界面的 profile 通常叫 web
ls "${DSH_HOME:-$HOME/.dsh}/profiles/web" # 里面应有 cordis.yml / cordis.patch.yml / plugins/
profile 名不一定是 web,以目录里同时存在 cordis.yml 与 cordis.patch.yml 的那个为准。
第 2 步 · 把插件包放进 profile 的 plugins/ 目录
A. 已经 clone 了本仓库 —— 复制 profile-plugin/