I downloaded and installed a configurable window button widget. I added it to a panel and an icon. The command I want it to perform is a Kwin shortcut: Move window to the next monitor.
I have this set up now with a hot key: Ctl+Alt+N.
But I want to be able to do this with my mouse, via the configurable window button widget. I think I am close I just need the actual command to insert in the widget.
The question was how to invoke it. The command was already provided but if not on wayland, the easiest way would be by emulating it with xdotool key ctrl+alt+n.