Something went wrong. Try again.
Something went wrong. Try again.
764 B · 32 lines
at master
123456789101112131415161718192021222324252627282930313233import Quickshellimport Quickshell.Io
Scope { id: root
signal refreshRequested(string name) signal popupRequested(string name)
property string lastMessage: "ready"
IpcHandler { target: "bar"
function refreshModule(name: string): void { root.lastMessage = `refresh:${name}`; root.refreshRequested(name); }
function togglePopup(name: string): bool { if (!["calendar", "habits", "k8s-alerts", "notifications"].includes(name)) return false; root.lastMessage = `popup:${name}`; root.popupRequested(name); return true; }
function getState(): string { return root.lastMessage; } }}