Summary:Is there a command which will tell me if there is any screen activitycurrently taking place on my Debian system?Full Details:Towards the end of every boot, I run the Kate text editor from a script in/etc/X11/Xsession.d/.  I do this to display the contents of a file* that hasreminders in for me to see (*using Kate).I want the Kate window to be the FOCUSED window when the boot finishes and allscreen activity has stopped. But at that point, I'm finding that SOMETIMES theKate window is UNFOCUSED, even though there are no other windows open.So in my script that launches Kate, I'd like to run a command that checks forwhen there is NO screen activity, so that I can launch Kate, knowing that itwill be the focused window.I realise that I could use a startup script that runs later than those in/etc/X11/Xsession.d/. But I WOULD like to know if there is a command that tellsyou if there is any screen activity taking place.
Is there a command that will tell me if there is no screen activity?
focus