I've been using MMO-style mice to do similar things for a while.
Logitech's G-whatever software is kind of annoying, but one thing I _do_ like about it is it'll flash the configurations directly onto the mouse. This avoids needing to do any special config in the OS.
I use their tool on Windows to just flash the mouse once, then I can use it on any machine and all my custom key-binds and macros "just work".