I hate this

This commit is contained in:
Michał Gdula 2023-04-19 11:04:08 +01:00
parent a9846b4ecd
commit 8c7569868d
416 changed files with 1549 additions and 208 deletions

11
configs/eww/scripts/bluetooth Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env bash
if [ $(bluetoothctl show | grep "Powered: yes" | wc -c) -eq 0 ]; then
echo "0"
else
if [ $(echo info | bluetoothctl | grep 'Device' | wc -c) -eq 0 ]; then
echo "1"
else
echo "2"
fi
fi