Middle mouse button like in windows?

how can I set my middle mouse button such itll behave like in windows?
meaning when i press it i can scroll on web page up or down by moving my mouse?

I always scroll using the middle button/wheel but I don't move my mouse. Did the same in windows.

the middle button is my bets friend :smiley: so i wonder how can i get this functionality?

I've found this old thread that covers how to enable this. It involves running a couple of commands on a terminal window, but it seems to work, at least under Xorg.

In a nutshell:

  1. Find your mouse id by running xinput list, which produces an output like so:

    ⎡ Virtual core pointer                          id=2    [master pointer  (3)]
    ⎜   ↳ Virtual core XTEST pointer                id=4    [slave  pointer  (2)]
    ⎜   ↳ Logitech ERGO M575                        id=9    [slave  pointer  (2)]
    ⎜   ↳ hfd.cn USB DEVICE                         id=11   [slave  pointer  (2)]
    ⎜   ↳ FTCS1000:00 2808:0101 Mouse               id=14   [slave  pointer  (2)]
    ⎜   ↳ FTCS1000:00 2808:0101 Touchpad            id=15   [slave  pointer  (2)]
    ⎜   ↳ ImPS/2 Logitech Wheel Mouse               id=18   [slave  pointer  (2)]
    

    I have a Logitech mouse, so my ID would be 9.

  2. Enable scroll with middle mouse:

    xinput set-prop 9 "libinput Scroll Method Enabled" 0, 0, 1
    xinput set-prop 9 "libinput Button Scrolling Button" 2
    

    The values of these numbers are explained in the thread above.

3 Likes

yeah this worked!
thank you!
Im starting to love this system.
Dont know why i was so hmmmm unwilling to do it sooner, laziness probobly

Can zenzen's post that helped you, be marked as :white_check_mark:Solution?

1 Like

sure, done.

2 Likes

Well, there's certainly some learning curve involved. This is true of any new thing that you want to learn, not just Linux, but when coming from another familiar system the steepness seems larger than it really is.