aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts/status/bluetooth-status
diff options
context:
space:
mode:
Diffstat (limited to 'Scripts/.local/scripts/status/bluetooth-status')
-rwxr-xr-xScripts/.local/scripts/status/bluetooth-status9
1 files changed, 9 insertions, 0 deletions
diff --git a/Scripts/.local/scripts/status/bluetooth-status b/Scripts/.local/scripts/status/bluetooth-status
new file mode 100755
index 0000000..c34694c
--- /dev/null
+++ b/Scripts/.local/scripts/status/bluetooth-status
@@ -0,0 +1,9 @@
+#!/usr/bin/env sh
+
+name=$(bluetoothctl info | grep "Name" | sed 's/.*Name: //')
+if [ ! "$name" ]
+then
+ echo ""
+else
+ echo "" $name;
+fi