- Introduces a general-purpose opencode skill to help agents build, debug, and publish DMS plugins. - Includes orientation, decision trees (plugin types), condensed cheat sheets, ecosystem map, and four generic vertical-slice starter templates (bar widget, popout widget, launcher, desktop widget). - Skill is versioned here for this project while remaining available as a global opencode skill. - Updated .gitignore to ignore globally-installed copies of the skill. Written by AI agent working for @jtmorris. Model: grok-build-0.1. |
||
|---|---|---|
| .. | ||
| DesktopWidget.qml | ||
| plugin.json | ||
| README.md | ||
| Settings.qml | ||
Example Desktop Widget Template
A minimal free-floating, user-movable and resizable widget that lives on the desktop background layer.
Key Points
- Uses
DesktopPluginComponent(notPluginComponent) - Set
minWidth/minHeight(and optionally defaults) - Read
widgetWidth,widgetHeightfor responsive behavior - Position and size are persisted automatically per screen
- User interaction: right-click + drag anywhere to move, right-click + drag the bottom-right corner to resize
Usage
Copy the folder, update plugin.json, customize the visual content.
Add real settings as needed. The template already demonstrates PluginSettings + StringSetting + SliderSetting.
See the official development guide for the full DesktopPluginComponent surface (including getData/setData helpers and time-based update patterns using SystemClock).