Dotfiles-dwm/dwmbar/modules/bluetooth

22 lines
324 B
Plaintext
Raw Permalink Normal View History

2024-06-02 11:02:06 +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
echo "$BLUETOOTH_ON_ICON"
else
:
#echo "$BLUETOOTH_OFF_ICON"
fi
}
get_bluetooth