Files
nixos/Droidnix/generated/.config/waybar/scripts/bluetooth-status.sh
T
2026-03-31 16:58:54 +00:00

10 lines
231 B
Bash

#!/usr/bin/env bash
bt_connected=$(bluetoothctl devices Connected | awk '{$1=""; $2=""; print substr($0,3)}')
if [ -n "$bt_connected" ]; then
echo ""
else
echo ""
fi
# Output the list for tooltip
echo "$bt_connected"