Running Hyprland (xWayland) and wondering how to enable middle click scrolling

One big feature I missed on Windows which I can’t seem to find how to enable (I found a couple of solutions for X11, but I’m running xWayland) is middle click scrolling.

Right now, middle clicking on Hyprland just pastes text, which I expected. But wondering how to swap the functionality to make it scroll instead.

 jos@jos-pc  ~  xinput list                                                         

WARNING: running xinput against an Xwayland server. See the xinput man page for details.
⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Virtual core XTEST pointer              	id=4	[slave  pointer  (2)]
⎜   ↳ xwayland-pointer:14                     	id=6	[slave  pointer  (2)]
⎜   ↳ xwayland-relative-pointer:14            	id=7	[slave  pointer  (2)]
⎜   ↳ xwayland-pointer-gestures:14            	id=8	[slave  pointer  (2)]
⎣ Virtual core keyboard                   	id=3	[master keyboard (2)]
    ↳ Virtual core XTEST keyboard             	id=5	[slave  keyboard (3)]
    ↳ xwayland-keyboard:14                    	id=9	[slave  keyboard (3)]

(xinput list)

So, what exactly happens on middle click? Is it a page down? and which browser?

This works for me:

bind = , mouse:274, exec, ydotool key 57:1 57:0

Equivalent of pressing the space bar.

Instructions:

Install ydotool

add:

exec-once = ydotool&

To your config.

Add your user to input group:

sudo usermod -a -G input <YOUR_USER>

reboot

Add the bind to your config.

Currently, it pastes text like as default functionality.

What I want it to do is have ‘auto-scrolling’ (https://www.answers.com/Q/What_is_autoscroll)

For some reason, Vivaldi doesn’t have the option so wondering if I can do it OS-wise.

I’ve gone ahead and (technically) solved this.

Following the solutions here:

https://askubuntu.com/questions/1374778/how-do-i-disable-middle-mouse-click-pasting-clipboard to disable pasting with middle click easily

Then, installed this extension: https://chromewebstore.google.com/detail/autoscroll/occjjkgifpmdgodlplnacmkejpdionan?hl=en for autoscrolling on the dashboard

And passing this argument to Electron apps to enable auto scrolling: --enable-blink-features=MiddleClickAutoscroll

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.