Hi, (i posted the reply off-list by occasion, sorry)
"Neil Jerram" <[EMAIL PROTECTED]> 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"' where /root/bin/waitclick.sh: #!/bin/sh 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:[EMAIL PROTECTED] _______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community