Skip to content

Commit

Permalink
xdotool: added more examples (tldr-pages#1650)
Browse files Browse the repository at this point in the history
  • Loading branch information
Δημήτρης Φιλίππου authored and agnivade committed Nov 26, 2017
1 parent f3c002d commit d6e9cf0
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pages/linux/xdotool.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,19 @@
- Click the right mouse button:

`xdotool click {{3}}`

- Get the id of the currently active window:

`xdotool getactivewindow`

- Focus on the window with id of 12345:

`xdotool windowfocus --sync {{12345}}`

- Type a message, with a 500ms delay for each letter:

`xdotool type --delay {{500}} "Hello world"`

- Press the enter key:

`xdotool key {{KP_Enter}}`

0 comments on commit d6e9cf0

Please sign in to comment.