Sets the button number to use for button scrolling. libinput Button Scrolling Button 1 32-bit value.Indicates which scroll method is currently enabled on this device. libinput Scroll Method Enabled 3 boolean values (8 bit, 0 or 1), in order 'two-finger', 'edge', 'button'.You can also get this with gsettings set .mouse natural-scroll true Xinput set-prop $deviceId 'libinput Natural Scrolling Enabled' 1 # OPTIONAL, for natural scrolling. Xinput set-prop $deviceId 'libinput Button Scrolling Button' 2 # Using middle buttpn. Since 17.04 Ubuntu uses libinput, so to set mouse properties: xinput set-prop $deviceId 'libinput Scroll Method Enabled' 0, 0, 1 # _button_ as scroll method Test: You can always test your input devices with xev, evtest, xinput -test $deviceId or libinput debug-events. If you are using libinput (the future/present) almost all properties will start with libinput (also check libinput list-devices). To list available properties use xinput list-props $deviceId. Get your input deviceId number xinput list This will work with all your applications without the need of installing anything. In Linux based/Mac systems, Google Chrome / Chromium hasn't got this feature.