plugin: rust-side modules + theme services with serde-typed config

This commit is contained in:
Damocles 2026-05-04 22:58:12 +02:00
parent a86e90e927
commit f34f3f2f4e
95 changed files with 2477 additions and 1011 deletions

View file

@ -4,6 +4,7 @@ import QtQuick
import Quickshell
import Quickshell.Io
import "." as S
import NovaStats as NS
QtObject {
id: root
@ -13,8 +14,8 @@ QtObject {
readonly property bool available: icon !== ""
property Process _proc: Process {
running: S.Modules.weather.enable
command: ["wttrbar"].concat(S.Modules.weather.args)
running: NS.ModulesService.weatherEnable
command: ["wttrbar"].concat(NS.ModulesService.weatherArgs)
stdout: StdioCollector {
onStreamFinished: {
try {
@ -30,8 +31,8 @@ QtObject {
}
property Timer _poll: Timer {
interval: S.Modules.weather.interval || 3600000
running: S.Modules.weather.enable
interval: NS.ModulesService.weatherInterval || 3600000
running: NS.ModulesService.weatherEnable
repeat: true
onTriggered: root._proc.running = true
}