在 deepin 25 桌面上常驻一块毛玻璃悬浮便签:随机展示优美有哲理的句子,一键收藏、自定义灵感分类,并且会跟着系统壁纸的色调自动调整文字配色。
exclusionZone=-1
1. 桌面主界面(毛玻璃悬浮便签)
2. 收藏夹:浏览 / 跳转 / 删除
3. 设置面板:灵感分类(含自定义分类)与便签位置、自动换句时间
4. 壁纸色调联动:同一张便签在四种壁纸下自动推导的配色
5. AI 编程工具调用 deepin Skills 的对话记录
# 编译依赖(deepin / UOS 25) sudo apt install -y build-essential cmake \ qt6-base-dev qt6-declarative-dev qt6-tools-dev \ libdtk6core-dev libdtk6gui-dev libdde-shell-dev # 构建安装 git clone https://atomgit.com/feidaojun/deepin-daily-quote cd deepin-daily-quote cmake -B build -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release cmake --build build -j$(nproc) sudo cmake --install build # 重启 dde-shell 生效 systemctl --user restart dde-shell@DDE
不想动系统时可以只在调试模式加载:
DDE_SHELL_PACKAGE_PATH=$PWD/build/packages \ DDE_SHELL_PLUGIN_PATH=$PWD/build/plugins \ dde-shell -p org.deepin.ds.dailyquote
也支持 dpkg-buildpackage -us -uc -b 打成 deb。
dpkg-buildpackage -us -uc -b
便签默认出现在屏幕右下角。
扩展自己的句子库:在 ~/.config/deepin/daily-quote/quotes.json 放置 { "categories": [...], "quotes": [{ "id","c","t","a" }] },启动时自动合并进内置库。
~/.config/deepin/daily-quote/quotes.json
{ "categories": [...], "quotes": [{ "id","c","t","a" }] }
整个项目在 AI 编程工具(WorkBuddy)中完成,把 deepin 官方 Skills 当「活文档」用, 而不是凭印象写 API。
用到的 Skill 模块
dde-shell-development
plugin-development.md
D_APPLET_CLASS
ds_install_package
ds_handle_package_translation
exclusionZone
dtk-development
StyledBehindWindowBlur
DGuiApplicationHelper
Skills 真正帮上忙的几个点
D_APPLET_CLASS(X)
#include "x.moc"
.so
dde-shell --list
Registered the applet factory "DailyQuotePanelAppletFactory"
D.DWindow.enableBlurWindow
D.StyledBehindWindowBlur{ blendColor }
palette: D.DTK.palette
--list
-p
~/.cache/dde-shell/
AI 协作中抓出来并修掉的两个真实缺陷
effectiveBackground
$ dde-shell --list org.deepin.ds.dailyquote ← 插件被发现 $ dbus-run-session -- dde-shell -p org.deepin.ds.dailyquote Registered the applet factory "DailyQuotePanelAppletFactory" [daily-quote] loaded 1200 quotes from ":/org/deepin/ds/dailyquote/quotes.json" [daily-quote] plugin ready: 1200 quotes, 0 favorites Created rootObject for the applet: "org.deepin.ds.dailyquote" grep -c "Unable to assign" → 0 ← QML 零绑定错误
org.deepin.dde.Appearance1
~/.config/dde-appearance/config.json
建议将唐贤今人词赋于其上,告诉你作文以记之
建议将迅哥语录加上
我有两台电脑,一台是deepin,另一台也是deepin——鲁迅
Featured Collection
Popular Ranking
Popular Events
在 deepin 25 桌面上常驻一块毛玻璃悬浮便签:随机展示优美有哲理的句子,一键收藏、自定义灵感分类,并且会跟着系统壁纸的色调自动调整文字配色。
一、功能介绍
exclusionZone=-1不占用工作区二、效果截图
1. 桌面主界面(毛玻璃悬浮便签)
2. 收藏夹:浏览 / 跳转 / 删除
3. 设置面板:灵感分类(含自定义分类)与便签位置、自动换句时间
4. 壁纸色调联动:同一张便签在四种壁纸下自动推导的配色
5. AI 编程工具调用 deepin Skills 的对话记录
三、安装方式
不想动系统时可以只在调试模式加载:
也支持
dpkg-buildpackage -us -uc -b打成 deb。四、使用说明
便签默认出现在屏幕右下角。
扩展自己的句子库:在
~/.config/deepin/daily-quote/quotes.json放置{ "categories": [...], "quotes": [{ "id","c","t","a" }] },启动时自动合并进内置库。五、开发过程说明
整个项目在 AI 编程工具(WorkBuddy)中完成,把 deepin 官方 Skills 当「活文档」用,
而不是凭印象写 API。
用到的 Skill 模块
dde-shell-developmentplugin-development.md:目录结构、D_APPLET_CLASS工厂注册、ds_install_package、ds_handle_package_translation3、 LayerShell 锚定与exclusionZonedtk-developmentStyledBehindWindowBlur毛玻璃 3、DGuiApplicationHelper主题感知 4、D-Bus 调用与 Qt6/DTK6 构建配置Skills 真正帮上忙的几个点
LayerShell;Applet 只能嵌在父容器里 —— 于是确定做独立 Panel。
D_APPLET_CLASS(X)+#include "x.moc"时.so能链接成功但无法实例化。本项目补齐后用
dde-shell --list和日志里的Registered the applet factory "DailyQuotePanelAppletFactory"双重确认。D.DWindow.enableBlurWindow+D.StyledBehindWindowBlur{ blendColor }+palette: D.DTK.palette。--list→-p→ 查~/.cache/dde-shell/日志确认 QML 无报错。AI 协作中抓出来并修掉的两个真实缺陷
effectiveBackground,用玻璃叠加后的真实底色作为基准六、验证记录
七、已知限制
org.deepin.dde.Appearance1,不可用时退化为解析~/.config/dde-appearance/config.json,再失败则用主题默认配色