Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

6
  • Explaining your objectives, may result in a different and better solution. Commented Mar 24, 2023 at 21:52
  • Which terminal emulator are you testing this with? Some ignore such events (as mentioned in the SENDEVENT NOTES section of the man page). How did you determine the window ID? Commented Mar 24, 2023 at 22:55
  • @ctrl-alt-delor My final objective is to set up little bash xdotool scripts to send keystrokes to a wine window on a separate desktop (same x session). I have done this before on another mint installation using this method. Commented Mar 25, 2023 at 1:54
  • @steeldriver ps -o 'cmd=' -p $(ps -o 'ppid=' -p $$) returns xfce4-terminal. So I assume that is correct. As stated above I did a sleep 5; xdotool key x command and switched terminal windows manually, which works fine. I can switch windows with windowID and run key commands. I determined the window ID by running getactivewindow, but I have also done searches by name etc, with xdotool, and gotten the same results. Commented Mar 25, 2023 at 1:57
  • Put all information in the question. Comments can come and go, and are not always read. Commented Mar 27, 2023 at 17:55