Some desktop environments (DE) like XFCE do not support this feature out of the box.
This tutorial works in both X11 and Wayland based setups, and is DE agnostic.
This can be achieved with https://github.com/PeterCxy/evdev-right-click-emulation/
First, install the build dependencies
Then, download the source
Now, go to `evdev-right-click-emulation` directory, and change the line 19 of Makefile to the following (otherwise, it will fail to compile in recent versions of Ubuntu/Debian)
Now, let's build it.
If the build succeeds, it should create the binary file `out/evdev-rce`. To test it, run it with sudo,
which should produce an output like
Afterward, long tap to enable right click should work!
Run the following command (copy paste the multi-line command into the terminal and press enter) to enable this feature permanently, once and for all!
(it creates a systemd service so that the program would run as root at startup)
in respective repos report issues related to html generations, documantation and images