kando-menu / kando

🥧 The Cross-Platform Pie Menu.
https://ko-fi.com/post/Kando-1-0-0-released-G2G5Z1DOS
Other
1.22k stars 28 forks source link

Run/Execute Commands #311

Closed k1ll1n closed 6 months ago

k1ll1n commented 6 months ago

Hi, friend! Do I understand correctly that at the moment, even if I configure a radial menu via menus.json, it will not be able to launch/execute the necessary commands? Because now, I only see the appearance setting.

Schneegans commented 6 months ago

Hi there. The items can already perform some limited actions. However, it is not yet documented. You can see the menus.json I used for this video here: https://gist.github.com/Schneegans/ebd385030bb7e15aa24d73f23abb4b53

In there, you'll find some configurations for executing commands, opening URLs or simulating shortcuts.

k1ll1n commented 6 months ago

Okay, I was blind enough to not see the commands setup. This is what I tried to do, and theoretically it looked correct))

{
  "menus": [
    {
      "nodes": {
        "type": "submenu",
        "name": "Prototype Menu",
        "icon": "open_with",
        "iconTheme": "material-symbols-rounded",
        "children": [
          {
            "type": "command",
            "data": "google-chrome-stable",
            "name": "Node 0",
            "icon": "play_circle",
            "iconTheme": "material-symbols-rounded"
          }
        ]
      },
      "shortcut": "Control+Space",
      "centered": false
    }
  ]
}

Now I realized my mistake! Thanks for putting me on the right path! (hehe😅)

Schneegans commented 6 months ago

Once the menu editor is functional, setting up menus will become a lot easier :smile: