English
Ask Your Question
1

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 >75 is welcome to improve it.

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

gain gravatar image

Hi,

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 delete

2 Answers

Sort by ยป oldest newest most voted
2

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

Please go to the below file

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

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 publish link more

Comments

Worked. thanks! Commenting out the corresponding line was wrong.

gain ( 2011-11-28 11:25:40 +0000 )edit

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

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

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

this post is marked as community wiki

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

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

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 publish link more

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

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 to your questions.
  • Down-voting might cost you karma, but you should consider doing so for incorrect or clearly detrimental questions and answers.

Stats

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

Seen: 2,295 times

Last updated: Nov 25 '11