Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In Os X, I can hold Shift while using the scroll wheel on the mouse to scroll horizontally instead of vertically. Is there a way to do something similar in Linux?

share|improve this question
I asked a similar question for Windows:… – Matthew Shanley Jul 27 '09 at 17:45
I'd imagine that would depend on your window manager. – jason Jul 27 '09 at 19:12
Doesn't look very difficult to do on a window manager level. I guess you could file a bug in metacity or kdm bugtracker... – liori Aug 15 '09 at 2:38

For a lot of things like this, xmodmap is useful, but I don't think it can remap keyboard+mouse combinations. However, you might have some luck using imwheel. It's actually fairly powerful - you can customize to have different mappings in different windows! For example, here's the first section of the sample file included in the source tarball:

None,           Up,     Up
None,           Down,   Down
Control_L,      Up,     Page_Up
Control_L,      Down,   Page_Down

This will apply to mutt (or rather, windows with titles matching that pattern). The first field is keyboard modifiers for the input event, the second is mouse button/wheel input event, and the third column is output events. So, the first one maps wheel up to keyboard up, and the third maps left control+wheel up to page up.

share|improve this answer

You could macro the same combination to do the similar action, you would need an alternative to AutoHotKey for your Linux distribution and a script dedicated to Linux.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.