Control keyboard and mouse inputs via commands in a way that is display server agnostic. More information: https://github.com/ReimuNotMoe/ydotool.
ydotoold
<LeftClick>
input:ydotool click 0xC0
<RightClick>
input:ydotool click 0xC1
<Alt F4>
:ydotool key 56:1 62:1 62:0 56:0