kando-menu / kando

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

Open a menu via command switch #460

Closed K4in-5037 closed 2 weeks ago

K4in-5037 commented 2 weeks ago

Description

It would be nice to have the ability to open a specific menu using the command line, something like:

kando --menu "My Menu"

This would make Kando a lot more friendly for scripting and invoking menus from other tools easier, as of now you have to workaround by simulating the shortcut keys and this can be unreliable at times, it also clutters the keyboard with useless shortcuts if you are only calling a menu from those applications.

For example issue #169 could be solved easily using something like keymapper, fusuma (for touchpads) or AutoHotkey in Windows.

Affected Desktop Environments

All

Additional Information

No response

Schneegans commented 2 weeks ago

Hi there! This is possible already and exactly with the syntax you suggested :innocent:

In the future, I'll also add a more advanced IPC protocol for opening custom menus via the command line. Most likely via web sockets. However, for now opening preconfigured menus works just like this.

K4in-5037 commented 2 weeks ago

Oh sorry I didn't realize, since there was no mention in the docs and running kando --help doesn't return anything, thanks for the fast reply.

Schneegans commented 2 weeks ago

Yeah, it should be added to the docs. But --help should print something. On which OS are you?

For me

./kando --help

Prints this:

Usage: kando [options]

The cross-platform pie menu.

Options:
  -V, --version      output the version number
  -m, --menu <menu>  show the menu with the given name
  -s, --settings     show the menu editor
  -h, --help         display help for command