This is a small configurable tray menu for MacOS (not sure about other platforms)
- Clone the Project
- Run
make
to build the project - Run
make create-default-config
to copy the default config to your home directory - Open the config at
~/.traymenu/config.json
and edit to your liking - To test if everything works simpy execute the
./traymenu
and look at the output
- Open the
Automator
-App and create a new Application - Add a new
Run Shell Script
action and give it the following command to execute:cd /path/to/your/traymenu/repo && ./start-traymenu.sh
- Save it
- Open the System-Settings, go to "Users & Groups", select your User and switch to "Login Items".
- Click on the plus-sign and select the application you created in the previous steps.
- To start it now, just double click on the entry. It should start whenever you log into your User-Account now.
The Configuration is pretty simple and essentially only as one Object-Type called Menu-Item that can be recursively be stacked through the Items
-Property:
type MenuItem struct {
Icon string
Title string
Tooltip string
Items *[]MenuItem // Submenu-Items (only Items or Action can be set at a time)
Action *string // OnClick this will be executed (only Items or Action can be set at a time)
CancellableAction bool // Defines if the Action can be cancled. This will result in a Start/Stop Button
}
Important: Every Menu-Item can either have an Action or Subitems. Both is not possible!