Hi !
I am trying to find a way to use some ahk like scripts in linux (for simply emulating right click or emulating keyboards keys with the mouse buttons). There is autokey in linux but I'd rather wirte down the code old-school, to improve my python knowledge

(and also, I couldn't find out how to make this thing work

)
I found so far dogtail with rawinput which seems promising, but I am new to python and could use some help. I don't even know where to start...
Some very helpful thing would be a minimal script for example to check the window focus and then link right click to ctrl+Lclick or space. I think i would be able to go on from there !
Thanks !