Shift + Scroll = Horizontal Scroll in Linux

Firefox kept going back and forward when I used my favorite Shift + mouse wheel scroll combo to try to scroll horizontally. It was driving me mad. After some rigorous googling, I found a Stack Overflow question, which suggested that I install xbindkeys and xautomation, then run xbindkeys at login. I was already doing most of that, so I just installed xautomation and created a ~/.xbindkeysrc.scm file that looks like this:

; bind shift + vertical scroll to horizontal scroll events
(xbindkey '(shift "b:4") "xte 'mouseclick 6'")
(xbindkey '(shift "b:5") "xte 'mouseclick 7'")

Then I restarted xbindkeys and it works! Hooray! Thank you, gfxmonk for the fix!

This entry was posted in input, ubuntu and tagged , , , , , , , , , , , , , , . Bookmark the permalink.

One Response to Shift + Scroll = Horizontal Scroll in Linux

  1. Jacob says:

    This is exactly what I was looking for, thank you so much!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>