Enable mouse middle button emulation on linux
mouse 333 · person cloud · link
Last update
2020-08-25
2020
08-25
« — »

xorg config

1
2
3
4
5
6
7
# /etc/X11/xorg.conf.d/mouse-middle-bt.conf
Section "InputClass"
   Identifier "middle button"
   MatchIsPointer "on"
   MatchDriver "libinput"
   Option "MiddleEmulation" "on"
EndSection

live command

1
2
3
xinput list # find the device ID/name
xinput list-props "USB Optical Mouse  Mouse" | grep -i middle
xinput set-prop   "USB Optical Mouse  Mouse" "libinput Middle Emulation Enabled" 1

Source: unix.stackexchange.com