Is there any way to programmatically determine which of an arbitrary number of onlykey has been inserted? From what I understand, Yubikeys have an identifier that can be used for this, but I’m having trouble finding an equivalent for Onlykeys. (I haven’t even found a way to distinguish between an Onlykey and Onlykey DUO, since the USB device id’s are the same, as are the serial numbers and seemingly everything else.) Ideally this would be possible without having the onlykey being unlocked, but monitoring for the onlykey to be unlocked, and only then checking whatever identifies them would work too.
What I’m actually trying to do is seamlessly switch which ssh key git is using for signing based on which of my onlykeys I have plugged in, since I can’t have the same key on multiple devices.