run-or-raise icon indicating copy to clipboard operation
run-or-raise copied to clipboard

Mouse shortcuts

Open galen1423 opened this issue 7 years ago • 4 comments

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.

galen1423 avatar Jan 07 '18 14:01 galen1423

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.

e3rd avatar Jan 07 '18 15:01 e3rd

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.

galen1423 avatar Jan 07 '18 16:01 galen1423

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.

humanplayer2 avatar Feb 07 '23 19:02 humanplayer2

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.

e3rd avatar May 26 '23 12:05 e3rd