![]() That's already enough for basic key pressing. To have xdotool type for you, use the type command: $ xdotool type '' For example, to switch windows: $ xdotool key alt+Tab If you want to chain two keys, use the + operator between them. From the terminal, you can type the command: $ xdotool key Rest assured though, the syntax is very simple and quick to pick up, relative to the extent of the program's features.įirst, it is very easy to simulate key press. Hence you have to know the syntax in order to use it properly. Basic Usage of XdotoolĪs intuitive as it is, xdotool remains a scripting application. If you cannot find xdotool for your distribution, you can always download it from the official website. ![]() After enabling EPEL repo, simply use yum command as above.įor Arch user, the package is available in the Community repo: $ sudo pacman -S xdotool Installation of Xdotool on Linuxįor Ubuntu, Debian or Linux Mint, you can just do: $ sudo apt-get install xdotoolįor Fedora, use yum command: $ sudo yum install xdotoolįor CentOS user, the package is available in EPEL repo. In other words, xdotool can simulate key presses and even mouse events from reading a text file. ![]() Its approach is intuitive as it stands as an X11 automation tool. I cannot pretend to have found it myself, but in the mean time, my preference goes to neat software called xdotool. If a lot of solutions exist today to fit such goal, it is sometimes hard to pick the simple, smart, and efficient one out of the lot. But except for that, scripting and task automation are every power user's dreams. Have you ever dreamed of your computer doing stuff automatically for you? Probably not if you just watched Terminator. #Linux mouse clicker how toHow to simulate key press and mouse movement in Linux ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |