Ask Your Question
1

How to remove battery-indicator in gnome-shell?

asked 2011-11-25 10:42:40 -0500

this post is marked as community wiki

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

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 merge delete

2 Answers

Sort by ยป oldest newest most voted
2

answered 2011-11-25 11:24:36 -0500

SoumyaC gravatar image

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

Comments

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

xuser gravatar imagexuser ( 2013-03-16 11:06:57 -0500 )edit
3

answered 2011-11-25 11:19:11 -0500

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

Question Tools

Stats

Asked: 2011-11-25 10:42:40 -0500

Seen: 4,155 times

Last updated: Nov 25 '11