Sample Header Ad - 728x90

xdotool: How to search for window by title and class with different patterns (similar to AutoHotkey)

24 votes
5 answers
58773 views
xdotool lets you search for windows using its search subcommand. I need to locate a window, that has class 'gvim' and title containing word 'TODO'. How do I do this? What I've tried: * You can do xdotool search --name --class, but it would only accept _one_ pattern for both name and title. * xdotool supports command chaining, but I could not find a way to chain two search calls -- the second one simply overrides first one.
Asked by t7ko (545 rep)
Jan 12, 2016, 10:02 AM
Last activity: May 14, 2024, 11:46 PM