The valuable keyboard automation tool xdotool
does not work on Wayland. A new tool that mimicks some of the functionality of xdotool, but that works both in Xorg and Wayland, is ydotool.
ydotool
is available in the Ubuntu software center as version 0.1.8-3. It the mean time, the tool has been "refactored" in the sense that it has been completely rewritten, has no external dependencies and uses a lot less memory and without dynamic memory allocation. It is at version 1.0.1 as of June 2022.
Only source code is provided on github, without instructions on how to build the code and install the tool. How can we install ydotool 1.0.1. on Ubuntu?
Following are installation instructions I tested on Ubuntu 22.04. Credits to here for the compilation instructions using cmake.
1. Prerequisites
2. Downloading and compiling
3. Installation
While in
checkinstall
, it is advised to change the proposed name of the package,build
to e.g.ydotool-custom
. It can then easily be recognized later on, and will not conflicting with the existingydotool
package of the system repositories.4. Configuration