You are not logged in.

#1 2014-04-25 10:26:21

0x29a
Member
Registered: 2012-09-28
Posts: 101

Toggle right-click in x11

Hi there!

Mouse device is giving me hard time lately, seems to be worn-off... Right button is malfunctioning and it lets itself go after a fraction of a second.
Until I get myself a new mice, I was wandering if there is any way to make right-click toggle, preferably in xbindkeys or something similar.

Thanks in advance for all sugestions!

Offline

#2 2014-04-25 12:54:42

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: Toggle right-click in x11

Have you tried using the menu key (the one next to right ctrl)?

Offline

#3 2014-04-25 16:31:36

0x29a
Member
Registered: 2012-09-28
Posts: 101

Re: Toggle right-click in x11

Yeah, I know it exists... However, it's not a case.
I'm working with plenty of programs that use hold-and-move right-click (pdf viewers, circuitry design apps, some first person shooter games...) and this functionality would be really, really useful, even with perfectly working mouse pointer.

Offline

#4 2014-04-25 20:17:02

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,019

Re: Toggle right-click in x11

You can use xdotool to generate a mouse click, you can use xte to generate a mouse click or mimic pressing a button for a set amount of time, you could perhaps mix those with xbindkeys (it doesn't quite want to work here), but I don't think you can make holding down some key combination be recognized as holding down a button, at least with these tools.

Offline

Board footer

Powered by FluxBB