Keyboard shortcut for horizontal scrolling

keyboard shortcutsscrollingwindowx11

Is there a utility I could use to scroll the active window horizontally using the keyboard?

Best Answer

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

; bind (Windows key + arrows) to horizontal scroll events
(xbindkey '(mod4 Left)  "xte 'mouseclick 6'")
(xbindkey '(mod4 Right) "xte 'mouseclick 7'")

Run xbindkeys

If you want to use a different set of keys, use xbindkeys --multikey to find out the codes.

References: