Using this Foundry VTT module, you can assign one of the hotbar pages to remember macros per token. If the token is linked to an actor, the hotbar will be associated with the actor.
Based on your settings, one page of the macro hotbar will be used to dynamically change the macros based on your selected token.
Token Hotbar integrates with Norc's Custom Hotbar, keeping the original 5 hotbar pages free and giving you a dedicated Token Hotbar.
The token hotbar can be shared between players. Example: as the player on the right makes a change, the hotbar of the player on the left gets reloaded.
The shared hotbar can also be locked, so that only the GMs can edit it.
When selecting a token with macros on its hotbar, it will automatically switch to the right page. When deselecting, it will switch back to the previous page you were on.
Feel free to test out the latest beta using the following manifest link:
https://fvtt.janssen.io/tokenhotbar/beta/module.json
If you wish to help out with development, then clone the repo and start digging in! Unit tests are much appreciated. :)