Ask Your Question

How to remove battery-indicator in gnome-shell?

asked 2011-11-25 16:42:40 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.


I successfully removed the accessibility-symbol in the top right corner by editing the following file: /usr/share/gnome-shell/js/ui/panel.js

But to comment out the 'battery' part with the corresponding line makes the symbol even bigger and sorts it on first position of the icons.

Thanks for helping.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2011-11-25 17:24:36 +0000

Please go to the below file


Go to the below line

const STANDARD_STATUS_AREA_ORDER = ['a11y', 'keyboard', 'volume', 'bluetooth', 'network', 'battery', 'userMenu'];

Just remove the battery part from the line and save it. And the do a Alt+F2 and "r" to reload the Gnome Shell and your Battery icon should be gone.

edit flag offensive delete link more


hardcoded configs is a bad idea, why they don't put it elsewhere

xuser ( 2013-03-16 16:06:57 +0000 )edit

answered 2011-11-25 17:19:11 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >750 is welcome to improve it.

You can try gnome-shell-extension-icon-manager, as described here: http://www.webupd8.org/2011/06/move-icons-from-message-tray-to-top.html

This blog post talks about getting the extension from the git repo, but gnome-shell-extension-icon-manager is now in the regular F16 repos.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Use your votes!

  • Use the 30 daily voting points that you get!
  • Up-vote well framed questions that provide enough information to enable people provide answers.
  • Thank your helpers by up-voting their comments and answers. If a question you asked has been answered, accept the best answer by clicking on the checkbox on the left side of the answer.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.


Asked: 2011-11-25 16:42:40 +0000

Seen: 3,087 times

Last updated: Nov 25 '11