Skip to content
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

Mouse shortcuts #4

Open
galen1423 opened this issue Jan 7, 2018 · 4 comments
Open

Mouse shortcuts #4

galen1423 opened this issue Jan 7, 2018 · 4 comments

Comments

@galen1423
Copy link

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.

@e3rd
Copy link
Member

e3rd commented Jan 7, 2018

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.

@galen1423
Copy link
Author

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.

@humanplayer2
Copy link

humanplayer2 commented Feb 7, 2023

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.

@e3rd
Copy link
Member

e3rd commented May 26, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants