You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for making this, I was about to write something like this and found it.
You are saying in readme that xdotool is the slow part. And I noticed that you already run wmctrl -l.
If you run wmctrl -l -x instead, that will return the list of windows with class name which should be parsable. You can also use wmctrl to activate windows with -a option, e.g. wmctrl -x -a class.name.goes.here and then you don't need to run xdotool at all.
The text was updated successfully, but these errors were encountered:
Didn't know about wmctrl -l -x. I'll do some test on my old 32bit laptop to see how it compared to xdotool search -classname <classname>, the hog.
Regarding using wmctrl to switch to the target window, I need to see how it behaves.
The xdotool windowactivate <window_id> isn't affecting performance much.
Thanks for making this, I was about to write something like this and found it.
You are saying in readme that xdotool is the slow part. And I noticed that you already run
wmctrl -l
.If you run
wmctrl -l -x
instead, that will return the list of windows with class name which should be parsable. You can also usewmctrl
to activate windows with-a
option, e.g.wmctrl -x -a class.name.goes.here
and then you don't need to run xdotool at all.The text was updated successfully, but these errors were encountered: