about summary refs log tree commit diff
path: root/scripts/dwm-status
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dwm-status')
-rwxr-xr-xscripts/dwm-status16
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/dwm-status b/scripts/dwm-status
index fba9e05..e7e1fbd 100755
--- a/scripts/dwm-status
+++ b/scripts/dwm-status
@@ -90,6 +90,18 @@ wireless() {
 	fi
 }
 
+bluetooth() {
+
+	status=`systemctl is-active bluetooth.service`
+
+	if [ $status == "active" ]
+	then
+	    echo ""
+	else
+	    echo ""
+	fi
+}
+
 # Here is the (big) function that outputs the appearance of the statusbar. It
 # can really be broken down into many submodules which I've commented and
 # explained.
@@ -122,6 +134,10 @@ status() { \
 
 	echo "$delim"
 
+	echo $(bluetooth)
+
+	echo "$delim"
+
 	echo $(wireless)
 
 	CPU_T=$(< /sys/devices/platform/coretemp.0/hwmon/hwmon0/temp2_input)