0

I want to detect if the Activities Overview is open or not from a script. I have tried xdotool getwindowfocus but it just gives me the window that was focused before the Activities Overview panel was opened. Is this possible?

Vishnu M.
  • 101

1 Answers1

0

You can use command

qdbus org.gnome.Shell /org/gnome/Shell org.gnome.Shell.OverviewActive

to see whether activity overview is open or not. If the output is true it is open.

To use qdbus, you may have to run sudo apt install qttools5-dev-tools

Simon
  • 419