I want a widget that shows connected bluetooth devices.
Currently, both bluetooth and sound are a single widget (since I mostly use bluetooth headphones), but clicking is ambiguous, and non-sound devices don't have a clear approach.
bluetoothctl devices Connected
can list devices, but getting the device type doesn't seem trivial. I probably need to interact with bluez's dbus api directly.
Main icon ->
Need to reflect discoverable/non-discoverable/off via the colour.
I need an icon per device type (only just pick for those I care about for now).
Device types are here https://git.kernel.org/pub/scm/bluetooth/bluez.git/tree/src/dbus-common.c
"audio-card" "audio-headphones" "audio-headset" "camera-photo" "camera-video" "computer" "input-gaming" "input-keyboard" "input-mouse" "input-tablet" "modem" "multimedia-player" "network-wireless" "phone" "printer" "scanner" "unknown" "video-display"