Skip to content

Instantly share code, notes, and snippets.

@mierzejk
Last active March 31, 2022 15:36
Show Gist options
  • Save mierzejk/452368a430ef50c6ffa92b26d6617f50 to your computer and use it in GitHub Desktop.
Save mierzejk/452368a430ef50c6ffa92b26d6617f50 to your computer and use it in GitHub Desktop.
GNOME panel Aggregate (System) Menu arrow visibility

With the help of gdbus, the dropdown arrow visibility can also be toggle from terminal:

  • To hide:
    • gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Main.panel.statusArea.aggregateMenu._arrow.visible = false;'
      or
    • gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Main.panel.statusArea.aggregateMenu._arrow.hide();'
  • To show:
    • gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Main.panel.statusArea.aggregateMenu._arrow.visible = true;'
      or
    • gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval 'Main.panel.statusArea.aggregateMenu._arrow.show();'

Tested with Ubuntu 18.04.6. LTS and GNOME 3.28.2.

To toggle the dropdown arrow visibility, set the visible property to a respective value:

  1. Open up Looking Glass with lg command: Alt + F2lgEnter
  2. Set the value:
    • To hide:
      Main.panel.statusArea.aggregateMenu._arrow.visible = false;Enter
      or
      Main.panel.statusArea.aggregateMenu._arrow.hide();Enter
    • To show:
      Main.panel.statusArea.aggregateMenu._arrow.visible = true;Enter
      or
      Main.panel.statusArea.aggregateMenu._arrow.show();Enter
  3. Quit Looking Glass with Esc button.

Tested with GNOME 3.28.2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment