// Sunset.qml import QtQuick import Quickshell import Quickshell.Io import QtQuick.Layouts import "../.." import "classes" // TopbarIcon { // id: sunset_indicator // text: sunset.text[0] == "+" ? "𖡹" : "𖥸" // font.pixelSize: Resources.fontsize.topbar_bamum // } BarText { id: sunset Process { id: sunset_script command: ["bar/scripts/suntime.sh"] workingDirectory: Quickshell.shellDir running: true stdout: StdioCollector { onStreamFinished: { sunset.text = '│' + Icons.modules.sunset + this.text.trim(); } } } Timer { interval: 1000 running: true repeat: true onTriggered: sunset_script.running = true } }