Mouse shortcuts
Hello and thank you for this extension.
Currently, I use xbindkeys with X.Org in this form and it works well using a shortcuts linked to one of my mouse buttons. As you mentioned, Wayland arrives and I would like to find the same way to use my mouse with X.Org
An excerpt from my .xbindkeysrc file:
Open gnome-terminal with mouse button 10
"Gnome-terminal" b: 10
How to get the same result with your extension using only the mouse buttons?
Thank you.
Unfortunately, I have not discovered any way to define mouse shortcuts (and I want it as well as you) :( . I haven't discovered any example in the GNOME3 documentation, any extension that does this, any mention in the GNOME3/js code, any mention in dconf-editor – everywhere are keybord shortcuts only.
It's very probable that I haven't searched enough, I'm not a GNOME3 expert, just user..., however I don't know how to implement it.
If it's really your priority I recommend to pose this question to the GNOME3 developers stackoverflow or something and link it here.
Fortunately, X.Org is not dead yet. :)
I keep in front of you the development of your extension. I hope you find a solution because unfortunately, I do not have the skills to help you.
Thanks again.
You could use a remapper in combination with run-or-raise. I am very fond of keyd, which also runs under wayland. It has growing, experimental mouse support.
Using it, you could map your mouse button 10 to, say, control+alt+t, then use control+alt+t for your terminal in the run-or-raise config.
I bet humanplayer2 has proposed a wonderful workaround.
Because run-or-raise do not seem to be able to handle mouse in the near future as https://discourse.gnome.org/t/how-to-bind-modifier-mousebutton-in-gjs/3743/ states:
I’m afraid the best option isn’t quick and easy: Instead of trying to find a way to work around mutter’s event machinery, implement new API for “mouse shortcuts” and propose its inclusion in mutter. That would give you (and others) a clean way for building functionality on top.