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?
Asked
Active
Viewed 206 times
0
Vishnu M.
- 101
1 Answers
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
-
-
@Zany_Zachary1 Did you install
qttools5-dev-toolsas I mentioned at the end of the answer? – Simon Apr 26 '21 at 08:38 -
yes I did, that did nothing, but then I realized I had to install a few more packages. It's all good now! – Zany_Zachary1 Apr 26 '21 at 13:00
man xlsclients, part of thex11-toolspackage. – waltinator May 26 '18 at 23:18wmctrland then runningwmctrl -l? – DK Bose May 27 '18 at 04:44wmctrl -ldoesn't show the Activities Overview. (I ransleep 2; wmctrl -land opened the Activities Overview). – Vishnu M. May 27 '18 at 17:03