From bce8427254b964e595110555ab978e3f2334379b Mon Sep 17 00:00:00 2001 From: Manuel Palenzuela Date: Sat, 15 Jun 2019 00:16:15 +0200 Subject: Added bluetooth indicator in status bar --- scripts/dwm-status | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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) -- cgit 1.4.1