initial commit
This commit is contained in:
8
polybar/hack/scripts/bluetooth.sh
Executable file
8
polybar/hack/scripts/bluetooth.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
devices_amount=$(bluetoothctl devices | cut -f2 -d' ' | while read uuid; do bluetoothctl info $uuid; done|grep -e "Connected: yes" | wc -l)
|
||||
|
||||
if [ $devices_amount -gt 0 ]; then
|
||||
echo $devices_amount
|
||||
else
|
||||
echo ""
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user