Switch Primary Mouse Button in Ubuntu
Switching the primary mouse button in Ubuntu reverses the left and right click functions so the right button handles your main actions. This setting helps left-handed people use their mouse comfortably without awkward finger positioning.
Ubuntu runs on a default left-click setup used by most operating systems, but you can change this preference through the standard system settings menu in just a few clicks.
Open Settings , then click Mouse & Touchpad. Under General, select Right as the primary button to make your right mouse button the default for clicking and selecting.
How to switch the primary mouse button in Ubuntu Linux
To switch mouse button Ubuntu settings and swap your left and right clicks, open the Settings app from your system menu, select the Mouse & Touchpad tab, and choose your preferred primary button option. This changes the main click to the right side of your mouse, which helps left-handed users navigate comfortably without needing extra software or complex command-line tweaks.
System settings manage hardware, accounts, and updates from one location. Opening this menu takes a click on the top-right corner of the desktop.

Alternatively, click on the System menu at the top-right corner of your desktop’s top bar.
Select Settings from the System menu, as highlighted below.

Click on the Mouse & Touchpad tile in the Settings app to open the panel.

In the Mouse & Touchpad panel, look for the General section and choose Right or Left to switch the primary button.

Closing the Settings app saves the preference automatically.
Changing the primary mouse button in Ubuntu Linux improves the experience for left-handed users.
- Changing the primary mouse button in Ubuntu Linux can greatly improve the experience for left-handed users.
- By following the simple steps outlined in this post, users can comfortably swap the behavior of the left and right mouse buttons.
- Accessing the System Settings panel and navigating to the Mouse & Touchpad section allows a quick adjustment to the primary button setting.
- This guide provides an accessible solution for customizing the mouse behavior in Ubuntu Linux, catering to diverse user preferences.
How to remap mouse buttons on Ubuntu?
Scroll down to the 'Mouse & Touchpad' section and click on it. Then, right at the top under General, the primary button is set to Left by default.
How to configure mouse buttons in Linux?
Click on the Preferences tab. expand the 'Additional buttons' section. Click the Add button. Move your mouse over the grey box that appears and click the appropriate button on your mouse.
Was this guide helpful?
About the Author
Richard
Tech Writer, IT Professional
Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.
[…] and background, opening and closing tabs, refreshing a page, and more, simply by holding down the right mouse button and drawing patterns on the […]