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

11 lines
204 B
Bash

#!/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