dwmbar/modules/bluetooth

22 lines
324 B
Text
Raw Permalink Normal View History

2019-10-21 18:47:15 +00:00
#!/bin/bash
# Prints out the bluetooth status
BLUETOOTH_ON_ICON=''
BLUETOOTH_OFF_ICON=''
get_bluetooth()
{
status=$(systemctl is-active bluetooth.service)
if [ "$status" == "active" ]
then
2019-10-21 19:09:02 +00:00
echo "$BLUETOOTH_ON_ICON"
2019-10-21 18:47:15 +00:00
else
:
2019-10-21 19:09:02 +00:00
#echo "$BLUETOOTH_OFF_ICON"
2019-10-21 18:47:15 +00:00
fi
}
2019-10-21 18:53:57 +00:00
get_bluetooth