diff options
| author | Sam Nystrom <sam@samnystrom.dev> | 2026-01-15 16:53:43 -0500 |
|---|---|---|
| committer | Sam Nystrom <sam@samnystrom.dev> | 2026-01-15 16:53:43 -0500 |
| commit | 53008538e5bef961e9ceb5abc5c5ee05a559e97d (patch) | |
| tree | 3ad2f4fa7fbc88ff4bb67c75395cc4acdb9c09fb /.config/quickshell/Services/Wifi.qml | |
| parent | 3ac17574dbcfe68b2fba11aeeb445f04d1170c2a (diff) | |
update qs config
Diffstat (limited to '.config/quickshell/Services/Wifi.qml')
| -rw-r--r-- | .config/quickshell/Services/Wifi.qml | 30 |
1 files changed, 30 insertions, 0 deletions
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 + } +} |
