Announcement

Collapse
No announcement yet.

Wheel mouse page scrolls

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [DESKTOP] Wheel mouse page scrolls

    is it possible to change the behavior of the central wheel of the mouse, with windows, pressing the wheel and moving the mouse, on the firefox browser the page scrolls automatically, on kubuntu I noticed that it is not so. Pressing the wheel and moving the mouse nothing happens, you have to scroll the wheel or use the slide to the right (uncomfortable).
    Is there a way to change this behavior?

    #2
    any help?

    Comment


      #3
      I've never fiddled with it, but you probably want to look into this: https://manpages.ubuntu.com/manpages...ibinput.1.html

      Please Read Me

      Comment


        #4
        Originally posted by Aviators View Post
        any help?
        (I didn't reply to your post because I was confused by it, sorry.)

        If you want to keep using X11, imwheel does that sort of thing. I'm using it to get sideways scroll with Firefox for some web pages that do their own scrolling and I have to use all day. I hold shift down while wheeling.

        Sent from my VFD 822 using Tapatalk
        Regards, John Little

        Comment


          #5
          You should also be able to configure that with xinput. (I'm attaching sample output for the commands from my machine, yours might differ)

          1. First find out the "id" device:
          Code:
          xinput list
          ⎡ Virtual core pointer id=2 [master pointer (3)]
          ⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
          ↳ 2.4G Mouse id=10 [slave pointer (2)]
          ⎜ ↳ DELL0817:00 044E:121F Mouse id=12 [slave pointer (2)]
          ⎜ ↳ DELL0817:00 044E:121F Touchpad id=13 [slave pointer (2)]
          ⎣ Virtual core keyboard id=3 [master keyboard (2)]
          ↳ Virtual core XTEST keyboard id=5 [slave keyboard (3)]
          ↳ Power Button id=6 [slave keyboard (3)]
          ↳ Video Bus id=7 [slave keyboard (3)]
          ↳ Power Button id=8 [slave keyboard (3)]
          ↳ Sleep Button id=9 [slave keyboard (3)]
          ↳ Integrated_Webcam_HD: Integrate id=11 [slave keyboard (3)]
          ↳ DELL0817:00 044E:121F UNKNOWN id=14 [slave keyboard (3)]
          ↳ Intel HID events id=15 [slave keyboard (3)]
          ↳ Intel HID 5 button array id=16 [slave keyboard (3)]
          ↳ Dell WMI hotkeys id=17 [slave keyboard (3)]
          ↳ AT Translated Set 2 keyboard id=18 [slave keyboard (3)]

          2. Then read the properties:
          xinput list-props <id> (replace <id> with the id# from the above command for your mouse)
          Code:
          xinput list-props 10
          Device '2.4G Mouse':
          Device Enabled (180): 1
          Coordinate Transformation Matrix (182): 1.000000, 0.000000, 0.000000, 0.000000, 1.000000, 0.000000, 0.000000, 0.000000, 1.000000
          libinput Natural Scrolling Enabled (343): 0
          libinput Natural Scrolling Enabled Default (344): 0
          libinput Scroll Methods Available (345): 0, 0, 1
          libinput Scroll Method Enabled (346): 0, 0, 1
          libinput Scroll Method Enabled Default (347): 0, 0, 1
          libinput Button Scrolling Button (348): 2
          libinput Button Scrolling Button Default (349): 2
          libinput Middle Emulation Enabled (350): 1
          libinput Middle Emulation Enabled Default (351): 0
          libinput Accel Speed (352): -0.200000
          libinput Accel Speed Default (353): 0.000000
          libinput Accel Profiles Available (354): 1, 1
          libinput Accel Profile Enabled (355): 1, 0
          libinput Accel Profile Enabled Default (356): 1, 0
          libinput Left Handed Enabled (357): 0
          libinput Left Handed Enabled Default (358): 0
          libinput Send Events Modes Available (328): 1, 0
          libinput Send Events Mode Enabled (329): 0, 0
          libinput Send Events Mode Enabled Default (330): 0, 0
          Device Node (331): "/dev/input/event6"
          Device Product ID (332): 7847, 100
          libinput Drag Lock Buttons (359): <no items>
          libinput Horizontal Scroll Enabled (360): 1

          3. You can then set the desired mouse button for scrolling (0=disabled, 2=middle button)
          xinput set-prop <id> <property> <value>
          Code:
          xinput set-prop 10 "libinput Button Scrolling Button" 2
          Also check that "libinput Scroll Method Enabled" value is 0,0,1 (which means button scrolling is enabled)

          4. The setting is for session only, if you wish to make it permanent, you can make a startup script that runs the xinput set-prop command, or add the configuration in xorg configuration (if you are using X11)
          But in this case it would probably be better to use the device name rather than the id (just in case the id number changes)
          Last edited by kubicle; May 23, 2021, 01:07 AM.

          Comment


            #6
            Firefox has an autoscroll option in its settings. Chrome should have an extension available that adds this.
            I hate the feature when using a mouse on my PC, but use it on my trackpad when on my laptop.

            You don't need to go through all the rigamarole above unless you want this behavior outside of a web browser.
            Last edited by claydoh; May 22, 2021, 11:50 PM.

            Comment


              #7
              Originally posted by claydoh View Post
              You don't need to go through all the rigamarole above unless you want this behavior outside of a web browser.
              Would definitely drive me insane if it was only on for some applications (browsers), that sort of thing starts coming from the spine fairly quickly.

              Comment


                #8
                found it! in firefox settings put the tick on:
                Use automatic scrolling
                Thanks

                Comment

                Working...
                X