Custom menu for Gnome Top Bar with your favorite program shortcuts, commands and scripts.
- Edit
.entries.json
to match your needs - Copy
.entries.json
file to$HOME/
If you edit .entries.json
while running gnome please ensure to reload Gnome Session (Alt+F2, "r")
Tested on Gnome v42-44.
The guide below describes available options. In the examples
directory you can see some tests you can
pick for your setup.
Here are some examples you can use with this extension:
Create a new entry and put it in the menu
{
"type": "launcher",
"title": "Item Name on Menu",
"command": "/your/command/to/execute --with-parameters"
},
Place a menu separator (<hr>)
{
"type": "separator"
},
Create a submenu inside current menu, items inside the submenu are placed inside entries
and they can be of any type (launcher, separator, submenu, ...)
{
"type": "submenu",
"title": "Menu Name",
"entries": [
//... Place your entries here ...//
]
},
Create a toggle item on menu, it has a detector and ON|OFF commands. Command detector can be activated|deactivated by a 0 (success) return error level and later detected with a plain JavaScript eval.
{
"type": "toggler",
"title": "Widget Title",
"command_on": "/command/when/turned/on",
"command_off": "/command/when/turned/off",
"detector": "/command/detector > /dev/null && echo yes"
},