Search code examples
linuxshellubuntusimulatekeystroke

Is it possible to simulate keystrokes in a shell script without installing packages like xdotool?


I'd like to simulate keystroke using a shell script, in order to trigger shortcuts for example.

Is it possible to do that without installing packages like xdotool?

I am using Ubuntu 14.04.2 LTS.

Thanks!


Solution

  • No, it is not. Input events can only be triggered via software by using either uinput or XTest, neither of which have "native" commands.