Since [#2336][1], adding actions to modules in Polybar is a lot easier to both understand and implement. This is a short development guide to adding these actions because it is not very well documented. All filenames referenced here use a placeholder module name.
More concrete examples can be found by perusing [this diff][2].
Add the following lines to the corresponding sections of the header file. These