Votes: 4
Link:
🔍 See Original Answer on Ask Ubuntu ⧉ 🔗
URL:
https://askubuntu.com/q/1050406
ID:
/2018/06/28/
Created:
June 28, 2018
Edited: June 28, 2018
Upload:
January 1, 2025
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
Acceleratoroption 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.
