Where developers come to connect, share, build and be inspired.

0

Horizontal scroll with mouse under Linux

1878 views


Configure your Linux key binding to make Shift+Mouse wheel send an horizontal scroll event:

Install xbindkeys xautomation Edit ~/.xbindkeysrc.scm and write:

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

Run xbindkeys


Kudos to gfxmonk for http://stackoverflow.com/questions/1175192/where-do-i-start-making-a-linux-input-hack

Comments

  • 8c29cd63479505949897dffa767f49eb

    Also, for Firefox 17+, open about:config and set:

    • general.autoScroll = true
    • mousewheel.with_shift.action = 1
    • optionally configure the scroll speed with mousewheel.with_shift.delta_multiplier_x = 300

Add a comment