View Single Post
Posts: 83 | Thanked: 18 times | Joined on Jun 2008
#11
Originally Posted by Benson View Post
You need to have xmodmap, and run a script like this (from the menu, osso-statusbar-cpu, or whatever):
Code:
#!/bin/sh
xmodmap -e "pointer = 2 3 1"
sleep 5
xmodmap -e "pointer = 1 2 3"
That sets it to do a middle click when you single click for the next 5 seconds, then sets it back. You can get right-click the same way, but change the first mapping to 3 2 1.

On consideration, you undoubtedly have xmodmap on the server, so you might run it there.
Oh great idea. That is what I love about Linux: it seems like there is always a solution to be cobbled together.

Now, unless I am missing how you would activate this (like from inside a VNC viewer full-screen mode)? Since I have an N810 with a physical keyboard, can I map a key like the "Chr" shift key to run this code and therefore get a middle-click mode for 5 seconds at a time?

Last edited by wartstew; 2008-07-25 at 04:01.