-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a way to open the menu widget from the terminal #11
Comments
dbus comes to mind, though I find the syntax unwelcoming (both the API code and dbus-send). |
D-Bus is a fair choice for IPC. It's cross-platform (so the BSD port can use it), it's extremely cross-language, and it is stable. I can be a bit clunky in the c/c++ world, but it gets the job done, and works with many debug tools. @soreau, if you don't like dbus-send, you can use busctl (if you use a systemd-based distro) |
What I find problematic is the case where we have multiple outputs (or even multiple Wayfire's running). How does the command know which instance to send it to? Perhaps we should just do a Wayfire plugin for tight integration with wf-shell. |
@ammen99 With compiz there is a concept of screens for each call so the dbus-send caller would choose screen[n] for different instances or allscreens where it doesn't matter. (See the wiki for examples) For knowing which output, you could probably also build it into the call or just use the focused one. |
In numbernine currently I have a launcher that just pops up as a layer-shell surface on an unspecified output when a gtk action is called, and a panel button that calls a gtk action over dbus. Absolutely no explicit mention of outputs anywhere, Wayfire just puts the lsh surface on the focused output, which is where the button was clicked :) So adding a keybinding is trivial.
Each instance should have its own session bus.
gdbus-codegen-glibmm is awesome :) (but with gtk actions, you don't need anything like that) |
Update wayfire-shell protocol and listen for the toggle_menu event. Fixes #11 because ipc plugin can be used to allow calling toggle_menu from a script.
Update wayfire-shell protocol and listen for the toggle_menu event. Fixes #11 because ipc plugin can be used to allow calling toggle_menu from a script.
* Listen for toggle_menu event Update wayfire-shell protocol and listen for the toggle_menu event. Fixes #11 because ipc plugin can be used to allow calling toggle_menu from a script. * wayfire-shell: Bump version for new toggle_menu event
* Listen for toggle_menu event Update wayfire-shell protocol and listen for the toggle_menu event. Fixes #11 because ipc plugin can be used to allow calling toggle_menu from a script. * wayfire-shell: Bump version for new toggle_menu event
This way we can bind such a command to a keybinding and open the menu with it.
The text was updated successfully, but these errors were encountered: