>>106863320
I'm not sure about running a script when switching between workspaces, but you probably can probably bind both an action and command for a single keybinding