Trayutil is a traybar icon which shows a json defined menu when clicked. It is written in Python 3 with PyQt5. You can use it to quickly bind complex commands to one-click menu entries.
Either supply a menu.json file as a program parameter or create a ~/.config/trayutil/menu.json file.
Every "name": "command" entry in the json file creates a new menu entry that executes the command on click. You can also create as many submenus as you want.
{
"Hello World": "notify-send 'Hello World!' 'Hello World.' --icon=dialog-information",
"Power": {
"Reboot": "systemctl reboot",
"Poweroff": "systemctl poweroff"
}
}
Result