"AutoKey offers an Ubuntu repository, installs fairly easily as
a package on other Linux distributions, and doesn't take much to
get up to speed with. In case you didn't guess already, it also
draws inspiration and a few features from its much-loved Windows
counterpart, AutoHotKey (often abbreviated as AHK)."