[Debian][OM2008][FSO] Found an easy solution for universal right- and middle-click
fercerpav at gmail.com
Sun Nov 23 18:50:15 CET 2008
(i posted the reply off-list by occasion, sorry)
"Neil Jerram" <neiljerram at googlemail.com> writes:
>> I just added to my fbpanel two icons to launch xmodmap -e 'pointer = 1
>> 2 3' and xmodmap -e 'pointer = 2 3 1' to switch ts to left-click and
>> to middle-click respectively. Right-click can be added as well.
> This sounds great. Is it possible to make the changes automatically
> one-time-only - i.e. so that they automatically revert to left-click
> after one right- or middle- click? I think that would best match what
> one needs in practice; e.g. right-click to bring up a context menu,
> then left-click on the desired menu entry.
Here's an ugly hack to do what you suggest:
bash -c 'xmodmap -e "pointer = 2 3 1"; /root/bin/waitclick.sh; xmodmap
-e "pointer = 1 2 3"'
input-events 1 2>&1 | ( grep -q -m 1 released && kill $$ )
I couldn't find a more elegant way but this one works for me.
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercerpav at gmail.com
More information about the community