summaryrefslogtreecommitdiff
path: root/services/Bluetooth.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-01 13:34:37 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-05-01 13:34:37 +1000
commiteb367cea43c0937f1b6578196dbb3e5f4800f343 (patch)
tree31ff049953038a3c627c53aa7938d1505b45486a /services/Bluetooth.qml
parentbar: workspaces scroll specialws (diff)
downloadcaelestia-shell-eb367cea43c0937f1b6578196dbb3e5f4800f343.tar.gz
caelestia-shell-eb367cea43c0937f1b6578196dbb3e5f4800f343.tar.bz2
caelestia-shell-eb367cea43c0937f1b6578196dbb3e5f4800f343.zip
feat: get networks
Also fix bluetooth
Diffstat (limited to 'services/Bluetooth.qml')
-rw-r--r--services/Bluetooth.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/services/Bluetooth.qml b/services/Bluetooth.qml
index c7ed727..f77001e 100644
--- a/services/Bluetooth.qml
+++ b/services/Bluetooth.qml
@@ -40,13 +40,13 @@ Singleton {
command: ["fish", "-c", `for a in (bluetoothctl devices | cut -d ' ' -f 2); bluetoothctl info $a | jq -R 'reduce (inputs / ":") as [$key, $value] ({}; .[$key | ltrimstr("\t")] = ($value | ltrimstr(" ")))' | jq -c --arg addr $a '.Address = $addr'; end | jq -sc`]
stdout: SplitParser {
onRead: data => {
- const devices = JSON.parse(data).filter(d => d.name);
+ const devices = JSON.parse(data).filter(d => d.Name);
const rDevices = root.devices;
const len = rDevices.length;
for (let i = 0; i < len; i++) {
const device = rDevices[i];
- if (!devices.find(d => d.address === device?.Address))
+ if (!devices.find(d => d.Address === device?.address))
rDevices.splice(i, 1);
}