Thanks for the input! I had something similar before, for toggling the bars manually, but it was pretty exhausting for me at some point to always remember to do so.

I'm coming with this suggestion simply because from what I've seen, it's already a thing for controller users. There's a screen under config that lets you choose which hotbars are shown with weapon sheathed/unsheathed.

Of course, controller players are hindered by less keys available, so that must be an invaluable asset. But this feature can benefit keyboard users as well.