How to get a detailed list of attached devices?

I’m trying to automate device attachment/detachment to/from qubes.

The problem is the device id changes, depending on whether wifi, video, mic is on or not.

What doesn’t change is the name.

Is there a command that would output a detailed list of the attached devices, the names, and the ids?

(I’m hoping I could parse from the list, the current id attached to the name, and then script attach the device.)

1 Like

I’d like to know too. I think the documentation doesnt have a list of terminal commands, which is inconvenient.