|
This is a recursive, auto-generating menu which runs an external utility (a script of some kind usually), which generates a JSON document/object which is used to populate the menu.
Syntax:
(Per object)
{
"type" : "item",
"icon" : "icon name (optional)",
"action" : "something lumina-open can run (optional)"
}
Or for a recursive menu generation
{
"type" : "jsonmenu",
"exec" : "some command to run to populate menu",
"icon" : "icon name (optional)"
}
Example for a full return:
{
"Item1" : {
"type" : "item",
"icon" : "folder",
"action" : "~/item1.jpg"
},
"Menu1" : {
"type" : "jsonmenu",
"exec" : "some script",
"icon" : "system-run"
}
}
Item1 will open ~/item1.jpg with lumina-open when clicked, while Menu1 will call "some script" to generate a new menu with additional options.
}
|