View Single Post
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#262
Originally Posted by psykosis View Post
... I have found a solution that seems to be working great, at least for my Enlightenment environment, however I am fairly confident it would work under IceWM, etc...
  • Create the r-mouse and l-mouse scripts As root, create a /usr/bin/r-mouse file that contains:
    PHP Code:
    #!/bin/sh
    /usr/bin/xmodmap -"pointer = 1 2 3" 
    and as root, create a /usr/bin/l-mouse file that contains:
    PHP Code:
    #!/bin/sh
    /usr/bin/xmodmap -"pointer = 3 2 1" 
Hi, psykosis,

I really like the look of your solution. I would prefer to use the + key, but the big question I have is:

If you're using xmodmap already (like we're doing for IceWM and the N810 keyboard), will this hack interfere with your already-loaded keymap? I'm hoping that each time you run xmodmap in your click-scripts it will only affect the mouse buttons, but if it erases the other mappings, I'll have to steer clear of this...
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!