Ask Your Question

Set mouse left handed but touchpad right handed

asked 2017-12-02 10:59:22 +0000

merbau gravatar image

Hello dear Fedora users,

I am having a problem and I cannot solve it myself: I have a laptop with several active users. Laptop has a touchpad and an external mouse. All users prefer their touchpad in right-handed configuration, but left-handed users prefer their external mouse as a left-handed (but touchpad as right-handed).

Left-handed mouse can be configured from Settings -> Mouse & Touchpad, by setting primary button as "Right". But this also maps the touchpad to left-handed configuration for this user, which is not desired.

So, my question is: Is there a way to configure my Fedora so, that above preferences can be fulfilled?

Some background and more info below:

My system is a Fedora 26, and its configuration is up to date. Previously I have used xinput to set button mapping separately for different mice (external, touchpad), but Wayland approach clearly does work like I used to do it in Xorg.

I tried to dig a bit deeper, which is described below, but I am not very confident, that I did this in a correct way:

I tried to study Wayland method for doing left-handed button mapping for each device separately, and stumbled into this documentation: (described here), and tried this:

xinput set-int-prop  xwayland-pointer:13 "libinput Left Handed Enabled" 8 1

Above set property appears in mouse configuration, but this configuration has no effect on my system (both pointer devices have the same mapping, either left or right-handed, as configured in Settings).

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2018-01-11 05:46:18 +0000

whot gravatar image

GNOME stores the settings in gsettings, but they're not all exposed in the GUI. Let's look at the left-handed key, which you can find after a bit of searching around in the gsettings list-schemas and gsettings list-keys outputs.

$ gsettings get org.gnome.desktop.peripherals.touchpad left-handed       

Let's look at the allowed values for this setting:

$ gsettings range org.gnome.desktop.peripherals.touchpad left-handed

From that we guess that mouse ties the touchpad to the mouse setting. So let's disable left-handed mode on the touchpad explicitly:

gsettings set org.gnome.desktop.peripherals.touchpad left-handed 'right'

And that should do the trick.

If xinput only sees an xwayland pointer then your main session runs under wayland, in which case the xorg libinput driver isn't active, so changing the properties has no effect. You need to use the compositor-specific methods to change any settings on input devices instead, in this case gsettings.

and, please don't assume you know what "all users prefer".

edit flag offensive delete link more


I think with "all users" they only meant all the users on this particular laptop.

Period22 ( 2018-01-11 06:10:12 +0000 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Question Tools

1 follower


Asked: 2017-12-02 10:59:22 +0000

Seen: 29 times

Last updated: Jan 11