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

18 lines
287 B
Bash
Executable File

#!/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
~~i3历险记~~, i3从入门到放弃, 转战bspwm
Shell 100%