dotfiles/home/private_dot_config/eww/bin/executable_bluetooth.sh

11 lines
204 B
Bash
Raw Normal View History

2024-01-22 06:28:52 -06:00
#!/bin/sh
if [ "$(bluetoothctl show | grep "Powered: yes" | wc -c)" -eq 0 ]; then
echo "󰂲"
else
if [ "$(bluetoothctl devices Connected | wc -c)" -eq 0 ]; then
echo ""
else
echo "󰂱"
fi
fi