pragma Singleton import Quickshell import Quickshell.Io import QtQuick Singleton { id: root property string ssid Process { id: netProc command: ["sh", "-c", "iwctl station wlan0 get-networks | awk -F' ' '/>/ {print $3}'"] running: true stdout: StdioCollector { onStreamFinished: root.ssid = this.text.trim() } } Timer { interval: 5000 running: true repeat: true onTriggered: netProc.running = true } }