Get the count of currently active windows in the current Activity and Virtual Desktop?

Viewed 57

There is a bug in KDE Activities where windows do not get focused and this requires to press Alt+Tab to switch to the last active window.

I want to count the number of the windows to press only when there is some, I tried

xdotool search --onlyvisible --desktop 2 --name ''

but it gets all the desktops in all the activities, I want to get the desktops in the current activity only

0 Answers
Related