From 2c6ae8a4287ffad33a8c41b08ef47b62494a67dd Mon Sep 17 00:00:00 2001 From: Sam Nystrom Date: Wed, 14 Jan 2026 14:47:59 -0500 Subject: Add quickshell config --- .config/quickshell/Wifi.qml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .config/quickshell/Wifi.qml (limited to '.config/quickshell/Wifi.qml') diff --git a/.config/quickshell/Wifi.qml b/.config/quickshell/Wifi.qml new file mode 100644 index 0000000..76ff2b5 --- /dev/null +++ b/.config/quickshell/Wifi.qml @@ -0,0 +1,26 @@ +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 + } +} -- cgit v1.2.3