Gnome – Applications Overlay Command


I'm trying to work out what function call opens the Applications overlay in Ubuntu 18.04 – this is the function call that runs when the Super+a shortcut is pressed in Ubuntu 18.04.

Applications overlay:

Application Overlay in Ubuntu 18.04

I've attempted to find an application that prints the function call from a given keyboard shortcut, but couldn't find anything. Googling generic words such as "applications overlay" didn't work either.

Furthermore, is there any way to find out these function calls in the future (e.g., documentation), as I feel I'm asking a very basic question.

Best Answer

Found it! Bit long winded, and involved going through the discussion for the Super+a commit on gnome-shell (found here), then analyzing the code a little bit.

Finally, I used gdbus to execute the JavaScript, inspired from this snippet about loading themes from JavaScript. Final result is this beautiful snippet:

gdbus call --session --dest org.gnome.Shell \
  --object-path /org/gnome/Shell --method org.gnome.Shell.Eval \
  'Main.overview._dash.showAppsButton.checked = true;;';