input-events was not installed in Debian, so I had to "apt-get install input-utils". And then "chmod +r /dev/input/event1" (because I want to use it as normal user). And it works now. Thanks.
On Sun, Nov 23, 2008 at 11:14 PM, Neil Jerram <[EMAIL PROTECTED]>wrote: > 2008/11/23 Paul Fertser <[EMAIL PROTECTED]>: > > > > 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. > > Thank you! I'll try this out. > > Neil > > _______________________________________________ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community >
_______________________________________________ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community