From 300e8cbabd689c570fa35d1e32a3ed0f93cdcb20 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Fri, 6 Oct 2023 01:18:33 +0100 Subject: (Emacs)+Elisp archive, (Scripts/status)+bluetooth status --- Scripts/.local/scripts/status/bluetooth-status | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 Scripts/.local/scripts/status/bluetooth-status (limited to 'Scripts/.local/scripts/status/bluetooth-status') 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 -- cgit v1.2.3-13-gbd6f