diff options
Diffstat (limited to 'quickshell/Procs.qml')
| -rw-r--r-- | quickshell/Procs.qml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/quickshell/Procs.qml b/quickshell/Procs.qml index c26c312..f24bec6 100644 --- a/quickshell/Procs.qml +++ b/quickshell/Procs.qml @@ -14,6 +14,7 @@ Scope { volumeProc.running = true batteryProc.running = true networkProc.running = true + bluetoothProc.running = true temperatureProc.running = true } } @@ -116,4 +117,21 @@ Scope { } Component.onCompleted: running = true } + + Process { + id: bluetoothProc + command: ["sh", "-c", "~/.config/quickshell/scripts/bluetooth.sh"] + stdout: SplitParser { + onRead: data => { + data = data.trim() + if (data == "Offline") { + bluetoothName = "Offline" + return + } + var parts = data.split(" ") + bluetoothName = parts.slice(2).join(" ") + } + } + Component.onCompleted: running = true + } } |
