-   Linux - Desktop (
-   -   Bind Mouse Button Combination to Keyboard Key Combination? (

neoAKiRAz 05-04-2007 12:49 PM

Bind Mouse Button Combination to Keyboard Key Combination?
Ok, what I'm looking for is pretty strange, but I'm getting used to thinking that everything is possible in Linux, so why not asking :)
I wanted to know how could I bind a mouse combination (button press + scroll wheel up/down) to a keyboard key combination (Ctrl + PageUp/PageDown)... I want to be able to change tabs in Firefox by holding a click in the wheel and scrolling it up/down. I couldn't find a Firefox extension which could handle mouse button mappings for shortcuts, so I intend to do this from my Kubuntu itself.
Currently all of my mouse buttons are working: the wheel click is Button2, and the wheel scrolling are Button4 and Button5. The mouse configuration in my xorg.conf is the following:


Section "InputDevice"

#        Driver        "mouse"
#        Option        "Protocol"        "evdev"
        Identifier  "Configured Mouse"
        Driver      "evdev"
        Option            "Dev Name" "Logitech USB-PS/2 Optical Mouse"
        Option            "Dev Phys" "usb-0000:00:10.0-1/input0"
        Option            "CorePointer"
        Option            "Device" "/dev/input/event2"
        Option            "Buttons" "8"
        Option            "ZAxisMapping" "4 5"

Any idea how to do this?? Any other idea? Thanks a lot! :D

All times are GMT -5. The time now is 01:53 AM.