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.)