在Ubuntu中启用水平滚动
鼠标和触摸板设置中没有选项可以在Ubuntu 13.04+(Raring / Saucy / Trusty)(GNOME 3.8+)中启用水平滚动:
即使通过启用两个手指滚动或内容棒到手指也没有水平滚动。
这怎么可能?
有一种方法可以通过dconf编辑器 ; 所以:
- 通过Dash打开dconf编辑器;
- 转到org> gnome> settings-daemon> peripherals> touchpad ;
- 检查horiz-scroll-enabled ,如屏幕截图所示。
编辑: Dconf编辑器已预先安装在13.04,我首先遇到了问题; 但是在13.10和14.04,使用gsettings更容易,请参阅Samuel Cavazos的回答 。
替代方法:在命令行中运行它
synclient HorizTwoFingerScroll=1
或者只是跑步
gsettings set org.gnome.settings-daemon.peripherals.touchpad horiz-scroll-enabled "true"
在一个终端
配置Linux密钥绑定以使Shift +鼠标滚轮发送水平滚动事件:
- 安装xbindkeys xautomation
-
编辑〜/ .xbindkeysrc.scm并写入:
; bind shift + vertical scroll to horizontal scroll events (xbindkey '(shift "b:4") "xte 'mouseclick 6'") (xbindkey '(shift "b:5") "xte 'mouseclick 7'")
运行xbindkeys
。
此外,对于Firefox 17+,打开about:config
并设置:
-
general.autoScroll = true
-
mousewheel.with_shift.action = 1
- (可选)配置滚动速度:
mousewheel.with_shift.delta_multiplier_x = 300
资料来源: https : //coderwall.com/p/xnez3g/horizontal-scroll-with-mouse-under-linux
我两个都在工作。 虽然对于xbindkeys
,一些应用程序坚持自己的行为,例如Firefox。