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.
#!/bin/sh xmodmap -e "pointer = 2 3 1" sleep 5 xmodmap -e "pointer = 1 2 3"