mirror of
https://git.adityakumar.xyz/dwmbar.git
synced 2024-11-09 22:19:45 +00:00
21 lines
324 B
Bash
Executable file
21 lines
324 B
Bash
Executable file
#!/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
|