Files
colorshell/waybar/modules/control-center.sh
T
2024-09-04 22:36:25 -03:00

10 lines
211 B
Bash

# Default return
CONTROL_CENTER_JSON="{ \"text\": \"\", \"bluetooth\": \"$BLUETOOTH_ACTIVE\" }"
$BLUETOOTH_ACTIVE=false
if [[ $(systemctl is-active bluetooth) =~ "active" ]]
then
$BLUETOOTH_ACTIVE=true
fi