You are not logged in.

#1 2021-06-10 19:32:18

kjozsa
Member
Registered: 2008-06-05
Posts: 126

Mouse extra buttons in Chrome with Wayland

I made the move to Wayland. Love my Logitech MX Anywhere 2s mouse though, and it has 3 standard buttons, 2 extra side buttons, plus it can tilt the wheel left-right, making 2 additional button events.

Using Xorg I could map the mouse wheel tilt left-right events to send ctrl+pgup, ctrl+pgdn using `xbindkey`, effectively making the mouse wheel tilting an easy way to switch between tabs in Chrome. Now, on Wayland, xbindkey is gone. I do see in `xev` that the wheel tilt events are sending events for button 6 and 7:

ButtonRelease event, serial 34, synthetic NO, window 0x2600001,
    root 0x2b0, subw 0x2600002, time 141226008, (54,43), root:(204,311),
    state 0x0, button 6, same_screen YES

but I found no way to map these to either keyboard actions, or bind them directly in Chrome to switching tabs.

Anyone could help me out reaching my goal somehow, anyhow?

Offline

#2 2021-06-10 20:23:36

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 12,992

Re: Mouse extra buttons in Chrome with Wayland

Input is handled by your compositor. This needs to be set up in whatever you are using here (... so gnome or sway or whatever, what are you using here?)

Offline

#3 2021-06-10 20:37:19

kjozsa
Member
Registered: 2008-06-05
Posts: 126

Re: Mouse extra buttons in Chrome with Wayland

Yes, I forgat to mention, I'm using Gnome 40!

Offline

Board footer

Powered by FluxBB