How to right-click on MacBook trackpad [KDE Plasma]

Hi there,
I am using openSUSE Leap 15.0 on a 2010 MacBook Pro. It’s working fine mostly, but I cannot figure out how to do right-clicks on the trackpad.

I don’t mean “tap to click” style right clicks, but actual right clicks.

Under OS X clicking in the bottom right corner would achieve this, but the same thing in openSUSE emits a left click.

I have tried, holding another finger on the trackpad while clicking, ctrl-click, etc, but I haven’t stumbled across the magic spell to make it happen. (Bizarrely, if I touch two fingers while clicking with a third, a middle mouse button click is emitted.)

Hi and welcome to the Forum :slight_smile:
I have a MacBook3,1 (Late 2007) running Leap 15.0 and GNOME, here either a two-finger tap or holding down the touchpad button with do a right button click.

Two-finger tap works when I have tap to click turned on. I have that turned off however, as I find it far too easy to make accidental clicks (not an openSUSE issue, I disable it on all laptops I work on).

Holding down the touch button does nothing for me, just a long left click.

Given that touching with two fingers then clicking with a third seems to do something (a middle click), is there a way to remap this to the right mouse button?

I managed to figure out button remapping using “xinput” in order to make the “touch two fingers then click with a third” middle click become a right click event.

The basic process was to use “xinput list” to see the input devices, then “xinput test” to explore what buttons are triggered by what clicks and taps, then finally use “xinput set-button-map” to rewire the buttons.

To make the changes persist (or re-apply automatically at next reboot/login), I created a script in “$HOME/bin/” which I added to the “System Settings / Startup and Shutdown” thing.

My script looks like:


#/usr/bin/sh

set -e
set -x

/usr/bin/xinput set-button-map bcm5974 1 3 2 4 5 6 7