about summary refs log tree commit diff
diff options
context:
space:
mode:
authorManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-15 00:16:15 +0200
committerManuel Palenzuela <manuelpalenzuelamerino@gmail.com>2019-06-15 00:16:15 +0200
commitbce8427254b964e595110555ab978e3f2334379b (patch)
tree44ba4aa3afac531b1450638dbe6ad557d1f6832b
parentFixed new temperature icons (diff)
downloaddwm-bce8427254b964e595110555ab978e3f2334379b.tar.gz
dwm-bce8427254b964e595110555ab978e3f2334379b.tar.bz2
dwm-bce8427254b964e595110555ab978e3f2334379b.zip
Added bluetooth indicator in status bar
-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)