Oh ok so you’re more so working with folder structure etc, so bash for when you plug-in a card?
I’m thinking in more programmatic terms, there’s definitely some bash scripting you can execute. Or just go balls out and write a service that executes on systemctl
If you, like me, read this exchange and are curious, 88 = HH = nazi
If you need more explanation I can supply it.