Changing default mouse button behavior

It took me a while to find the magical query for what I wanted to do, but hopefully this can help others.

If you want to remap your mouse buttons from one to another, there’s useful documentation here.

On the other hand imwheel gives you the ability to binds your mouse buttons to other actions (e.g. type text, combination key strokes).  However you can probably find it within your distro’s repository and install it from there.  Once imwheel is set up, you can take a quick glance at the man pages.

If you want to modify system-wide settings edit /etc/X11/imwheelrc, otherwise modify $HOME/.imwheelrc for user specific settings.

One thing to note is that unlike rest of X configuration, tilt wheel is not represented as button 5 and button 6, with thumb buttons represented as button 7 and 8.  Instead tilt left is “Left”, tilt right is “Right”, left thumb is “Thumb1″, right thumb is “Thumb2″.

My .imwheelrc is listed below, but feel free to search for other configurations for more ideas.

".*"
None,Left,Control_L|Page_Up
None,Right,Control_L|Page_Down
None,Thumb1,Control_L|w

If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.

Comments

No comments yet.

Leave a comment

(required)

(required)