aboutsummaryrefslogtreecommitdiff
path: root/Scripts/.local/scripts
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-10-06 01:18:33 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-10-06 01:18:33 +0100
commit300e8cbabd689c570fa35d1e32a3ed0f93cdcb20 (patch)
tree942cb4a587ba3cbc1c5386898a8b2e0fd026d58f /Scripts/.local/scripts
parentd88430aa8a5a322e819fb7ccddffa1bd645b883c (diff)
downloaddotfiles-300e8cbabd689c570fa35d1e32a3ed0f93cdcb20.tar.gz
dotfiles-300e8cbabd689c570fa35d1e32a3ed0f93cdcb20.tar.bz2
dotfiles-300e8cbabd689c570fa35d1e32a3ed0f93cdcb20.zip
(Emacs)+Elisp archive, (Scripts/status)+bluetooth status
Diffstat (limited to 'Scripts/.local/scripts')
-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