autoit, autokey for linux

SikuliX uses simple language and small screenshots to take action on windows in linux.

I haven’t tried it yet, but the documentation is clear and seems quite scriptable.

http://www.sikulix.com/

http://sikulix-2014.readthedocs.org/en/latest/index.html