Views:
580
Votes: 4
✅ Solution
Tags:
keyboard
shortcut-keys
touchpad
configuration
customization
Link:
🔍 See Original Answer on Ask Ubuntu ⧉ 🔗
URL:
https://askubuntu.com/q/1050406
Title:
How to reassign touchpad buttons to keyboard?
ID:
/2018/06/28/How-to-reassign-touchpad-buttons-to-keyboard_
Created:
June 28, 2018
Edited: June 28, 2018
Upload:
September 15, 2024
Layout: post
TOC:
false
Navigation: false
Copy to clipboard: false
You can do this with Custom Keyboard shortcuts and xdotool
. Install the tool using:
sudo apt install xdotool
Then go to System Settings -> Keyboard -> Shortcuts -> Custom:
- Click on +</bkd> to create a new shortcut.
- Set Name to
Left Click
- Set Command to
xdotool click 1
- Click Apply button
- Click on
Accelerator
option and when prompted for key pressF1
Repeat process for Right Click
but assign command as xdotool click 3
and set the accelerator as F2
.
Now you can press F1 for left click and F2 for right click.