From 53008538e5bef961e9ceb5abc5c5ee05a559e97d Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Thu, 15 Jan 2026 16:53:43 -0500 Subject: update qs config --- .config/quickshell/Services/Wifi.qml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .config/quickshell/Services/Wifi.qml (limited to '.config/quickshell/Services/Wifi.qml') diff --git a/.config/quickshell/Services/Wifi.qml b/.config/quickshell/Services/Wifi.qml new file mode 100644 index 0000000..a438471 --- /dev/null +++ b/.config/quickshell/Services/Wifi.qml @@ -0,0 +1,30 @@ +pragma Singleton + +import Quickshell +import Quickshell.Hyprland +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() + // Hyprland.refreshWorkspaces() + } + } + } + + Timer { + interval: 5000 + running: true + repeat: true + onTriggered: netProc.running = true + } +} -- cgit v1.2.3