How can I remove icons from the GNOME Shell panel?

8,565

A solution taken from the arch-wiki:

When doing a GNOME install, some unwanted icons might appear in the panel. To remove the icons, edit the GNOME panel script.

For example, to remove the universal access icon. Remove a11y from the AREA_ORDER line and comment out the a11y line in AREA_SHELL_IMPLEMENTATION

/usr/share/gnome-shell/js/ui/panel.js

const STANDARD_STATUS_AREA_ORDER = ['ally', 'keyboard', 'volume', 'network', 'bluetooth', 'battery', 'userMenu'];
const STANDARD_STATUS_AREA_SHELL_IMPLEMENTATION = {
    'a11y': imports.ui.status.accessibility.ATIndicator
    'volume': imports.ui.status.volume.Indicator,
    'battery': imports.ui.status.power.Indicator,
    'keyboard': imports.ui.status.keyboard.XKBIndicator,
    'userMenu': imports.ui.userMenu.UserMenuButton
};

to

/usr/share/gnome-shell/js/ui/panel.js

const STANDARD_STATUS_AREA_ORDER = ['keyboard', 'volume', 'network', 'bluetooth' 'battery', 'userMenu'];
const STANDARD_STATUS_AREA_SHELL_IMPLEMENTATION = {
    //'a11y': imports.ui.status.accessibility.ATIndicator
    'volume': imports.ui.status.volume.Indicator,
    'battery': imports.ui.status.power.Indicator,
    'keyboard': imports.ui.status.keyboard.XKBIndicator,
    'userMenu': imports.ui.userMenu.UserMenuButton
};

save your results and restart the shell to see results:

Alt+F2
r
Enter

I am using this right now and it works with my gnome-shell!

Share:
8,565

Related videos on Youtube

user50899
Author by

user50899

Updated on September 18, 2022

Comments

  • user50899
    user50899 over 1 year

    I tried to use the gmenu-simple editor, but it said it can't find it. It's just for a good look.

    • Admin
      Admin about 12 years
      Try the package alacarte.
  • Gary
    Gary about 12 years
    It may be better to use the Evil extension however, because every update to these scripts will undo the work. Only a version update will require any modification to extensions.