Jeremy.S
Jeremy.S

Reputation: 189

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!

Upvotes: 0

Views: 542

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

Reputation: 799210

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

Upvotes: 2

Related Questions