mirror of
https://github.com/Fluffy-Bean/dots.git
synced 2025-05-30 23:33:10 +00:00
I hate this
This commit is contained in:
parent
a9846b4ecd
commit
8c7569868d
416 changed files with 1549 additions and 208 deletions
11
configs/eww/scripts/bluetooth
Executable file
11
configs/eww/scripts/bluetooth
Executable 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
|
Loading…
Add table
Add a link
Reference in a new issue