aboutsummaryrefslogtreecommitdiff
path: root/quickshell/scripts/bluetooth.sh
diff options
context:
space:
mode:
Diffstat (limited to 'quickshell/scripts/bluetooth.sh')
-rwxr-xr-xquickshell/scripts/bluetooth.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/quickshell/scripts/bluetooth.sh b/quickshell/scripts/bluetooth.sh
new file mode 100755
index 0000000..861e4a3
--- /dev/null
+++ b/quickshell/scripts/bluetooth.sh
@@ -0,0 +1,9 @@
+#!/usr/bin/env bash
+
+connected="$(bluetoothctl devices Connected)"
+
+if [ -z "$connected" ]; then
+ echo "Offline"
+else
+ echo "$connected"
+fi