Is there a way to invoke the Activities view of GNOME from the Linux command line? This is what the Super key invokes from GNOME. Once it is shown, I can interact with it as usual using the mouse.
I'm using Ubuntu 18.04 LTS.
The reason I'm asking: I'm viewing the desktop that I need to "send" the Super key into via a TeamViewer session. TeamViewer has a way to send CTRL-ALT-DELETE, but that of course is for Windows remotes, but this is pure Ubuntu-to-Ubuntu here. Even if TeamViewer was not involved, and I was using VNC, I would have the same problem.
A command that causes the shell to switch to the overview is:
Use
Main.overview.hide();
to close the overview, orMain.overview.toggle();
to toggle between overview and normal view (with thanks to gatr and Marcelo Avila).There might be a proper command line way to interact with various GNOME Shell components (using DBus, I suppose), but a quick and dirty way is to simulate the keypress:
From GNOME 41 onwards you need an extension.
(source)
So the solution is:
Install the eval-gjs extension:
Use
--object-path /dev/ramottamado/EvalGjs
and--method dev.ramottamado.EvalGjs.Eval
, like: