That looks promising.
The problem is that I just ran the first part of it and got a ton of results.
To try to reduce that, I added --maxdepth 1 which reduced the results considerably, but still yielded:
bigbird@sananda:~$ xdotool search --class --maxdepth 1 konsole
94371866
bigbird@sananda:~$ xdotool search --class --maxdepth 1 dolphin
100678032
100668442
100679860
100681686
bigbird@sananda:~$ xdotool search --class --maxdepth 1 vivaldi
121634817
121634819
121634854
bigbird@sananda:~$ xdotool search --class --maxdepth 1 thunderbird
10485761
10485857
10485895
10485901
10485911
10485945
10485948
10485951
10485986
10487536
10639246
10692850
10625671
10726762
10825282
10628254
10629247
10699576
bigbird@sananda:~$
Each application has only one (user visible) window open. Konsole has 3 tabs open, but in one window. Dolphin has 5 tabs open in one window.
What is this going to do with all those values?
The man page says it will add them to the stack, but I'm not sure what the rest of the command chain will do with them.
Also, I will want another separate konsole window on another desktop later. I think I can use kstart to give it a unique window title so I can tell the two apart using --name.
I also tried:
xdotool search --name '.*dolphin.*'
(with and without dolphin capitalized)
which returned nothing.
Thanks.