Re: [Debian][OM2008][FSO] Found an easy solution for universal right- and middle-click
[2] http://packages.debian.org/lenny/mousetweaks short survey of the package reveals heavy dependencies on gnome specific libs. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian][OM2008][FSO] Found an easy solution for universal right- and middle-click
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 21 | ( 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
Re: [Debian][OM2008][FSO] Found an easy solution for universal right- and middle-click
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 21 | ( grep -q -m 1 released kill $$ ) I couldn't find a more elegant way but this one works for me. Maybe a more elegant solution would be to write a small C program that will: - put a tray icon, - when icon is clicked, use XGrabPointer() to get the next click, - once got, ungrab pointer and send sytnetic X events ButtonPress and ButtonRelease that simulate a right-click This may be enhanced by showing a menu on a long click on the tray icon, and use that to simulate more events - middle-click, double-clicks, etc Anybody wishes to write such a program? :) signature.asc Description: This is a digitally signed message part. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian][OM2008][FSO] Found an easy solution for universal right- and middle-click
I am using a package called mousetweaks[1] wich does provide a onscreen menu for dwell click events. eg right click, drag click etc.. not sure if is in the debian repo for freerunner (reinstalling debian tommorrow) there is a package in debian lenny repo [2] azmodie Due to the speed of light being faster than the speed of sound people often look bright until they speak [1] http://live.gnome.org/Mousetweaks/Home [2] http://packages.debian.org/lenny/mousetweaks ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
[Debian][OM2008][FSO] Found an easy solution for universal right- and middle-click
Hello, everybody! I think i found a universal (not only GTK) and easy (without special tslib drivers) solution that should work on any X-server. 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. But i can't figure what's the best place on the wiki to share this information. Can you suggest the appropriate place? The solution was inspired by the oesf.org forum. Good luck and happy hacking! -- 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
Re: [Debian][OM2008][FSO] Found an easy solution for universal right- and middle-click
2008/11/23 Paul Fertser [EMAIL PROTECTED]: Hello, everybody! I think i found a universal (not only GTK) and easy (without special tslib drivers) solution that should work on any X-server. 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. But i can't figure what's the best place on the wiki to share this information. Can you suggest the appropriate place? I suggest a new UI tricks or Usability tricks (or somesuch) bullet in the Getting Started group of the for Users section of the Wiki start page. (Obviously pointing to a new page, containing your suggestion.) Regards, Neil ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian][OM2008][FSO] Found an easy solution for universal right- and middle-click
Paul Fertser [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. Does this work for you with xserver-xglamo? It doesn't here. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian][OM2008][FSO] Found an easy solution for universal right- and middle-click
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo Juhani Lindfors ha scritto: Does this work for you with xserver-xglamo? It doesn't here. In xserver-xglamo i saw no way to make a right click! Michele Renda -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkkpa5IACgkQSIAU/I6SkT1LoACfVB/Utu5fQCFP4Jhd9GNK4PY7 cvUAniWGUf7qSCtPY9O/3EvEsO2UKpj7 =mkXC -END PGP SIGNATURE- ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: [Debian][OM2008][FSO] Found an easy solution for universal right- and middle-click
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 21 | ( 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
Re: [Debian][OM2008][FSO] Found an easy solution for universal right- and middle-click
Hi, Timo Juhani Lindfors [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. Does this work for you with xserver-xglamo? It doesn't here. I didn't try, but i think it's quite possible that it is xglamo's limitation. It seems that nobody is interested in supporting it anymore, as Graeme is now porting RandR (and then acceleration) to Xorg. -- 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
Re: [Debian][OM2008][FSO] Found an easy solution for universal right- and middle-click
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 21 | ( 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