wm-logs/home/config/polybar/scripts/bluetooth.sh

18 lines
287 B
Bash
Raw Permalink Normal View History

2023-07-12 09:43:56 +08:00
#!/bin/bash
if bluetoothctl show | grep -q "Powered: yes"; then
if bluetoothctl info | grep -q "Connected: yes"; then
if bluetoothctl info | grep -q "Icon: audio-headphones"; then
echo ""
else
echo ""
fi
else
echo ""
fi
else
echo ""
fi