Skip to content

feat(kde): add KDE Plasma 6 plasmoid frontend - #13

Merged
vdemonchy merged 10 commits into
mainfrom
feat/kde-plasma-frontend
Jun 9, 2026
Merged

vdemonchy merged 10 commits into
mainfrom
feat/kde-plasma-frontend

Conversation

@vdemonchy

Copy link
Copy Markdown
Owner

Summary

Adds a KDE Plasma 6 plasmoid as a third desktop frontend, alongside the GNOME Shell extension and the COSMIC applet. It shares the same daemon and JSON contract — no changes to the Go daemon, CLI, udev rule, or systemd service.

  • New package under plasmoid/package/ (plugin id io.github.vdemonchy.cyclone2):
    • Polls the state file ($XDG_RUNTIME_DIR/cyclone2-linux.json) once per second via XMLHttpRequest; renders a panel icon tinted green/yellow/red by battery level, a charging pulse, optional level text, and hides when no controller is present.
    • Popup shows Mode + Battery (charge state / unavailable for DS4 / (stale)), plus a Configure action.
    • Native KConfig settings (mirroring the GNOME gschema 1:1) with write-through to ~/.config/cyclone2-linux/config.json; rgb block emitted only when lighting is enabled.
    • RGB lighting page gated to XInput mode (disabled with an explanatory message otherwise), four zone colour pickers + brightness.
  • Makefile: install-kde / uninstall-kde (via kpackagetool6, cp fallback) and XDG_CURRENT_DESKTOP auto-detection (kde/plasma → kde; FRONTEND=kde to force). Frontends stay strictly separated.
  • Docs: README, INSTALL, CONTRIBUTING updated (features, supported desktops, install steps, project layout, manual test checklist).

Faithful port of the GNOME extension's behaviour (tint thresholds, charging-pulse curve, stale/DS4 handling, XInput-only RGB gating).

Test Plan

  • go test ./... passes (daemon/contract unchanged).
  • QML config XML well-formed (xmllint --noout); QML parses under Qt6 qmllint (no syntax errors).
  • make -n install-kde / make -n install-frontend FRONTEND=kde produce correct commands; install-kde touches neither GNOME nor COSMIC.
  • Manual (needs Plasma 6 hardware — see CONTRIBUTING checklist): plasmoidviewer -a ./plasmoid/package; panel tint + popup; plasmoid hides off/HID; state-file edit reflects within ~1s; poll-interval change updates config.json and daemon honours it; Lighting page disabled outside XInput.

🤖 Generated with Claude Code

vdemonchy and others added 10 commits June 8, 2026 10:04
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@github-actions github-actions Bot added the enhancement New feature or request label Jun 8, 2026
@vdemonchy
vdemonchy merged commit 4898c3f into main Jun 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant