Files
dotfiles/polybar/bluetooth.sh
2024-02-02 15:22:58 +01:00

11 lines
209 B
Bash

#!/bin/sh
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]
then
echo "󰂲"
else
if [ $(echo info | bluetoothctl | grep 'Device' | wc -c) -eq 0 ]
then
echo "󰥰"
fi
echo ""
fi