Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I have installed Gnome and Awesome window manager. The window manager has a panel that displays systray icons according to the freedesktop.org System Tray Protocol Specification. I'd like to change the icon of the battery in the system tray.

systray with incorrectly themed icons for power and Parcellite

I first tried changing the icon theme; the icon in the systray does not match the icon from the selected theme, so I'm not sure where the icon is coming from. I've tried several themes in case there was a problem with the one I selected.

I've read the mentioned specification, as well as the Gnome Icon Theme Specification and the Creating icon themes for GNOME article. I've also tried using inotifywait -mr on /usr/share/icons while restarting my Gnome session and while changing the icon theme using gnome-tweak-tool. It actually does touch the battery icon in my theme, but that's not what gets displayed.

[UPDATE: the theme icon is what is being displayed, but it's rendering as black instead of the true color, which is a couple shades of gray].

I looked through every image in /usr/share/gnome-power-manager. The icon wasn't anywhere in there [UPDATE: it was - but I didn't recognize it because it's not black]. I tried hitting it with xprop, but it didn't give me anything useful, and running xprop -spy isn't showing anything when the widget is updated.

share|improve this question
    
A little bit unrelated but you may want to look into xfce4-power-manager as a replacement for the old gnome-power-manager –  Ulrich Dangel Jun 24 '12 at 5:25
    
@UlrichDangel That would just add another battery to the system tray unless I also move away from using gnome-settings-daemon. –  Shawn J. Goff Jun 24 '12 at 15:01
add comment

2 Answers

Your icon theme (whatever you're using) is probably inheriting another theme which is inheriting another theme etc...until it finds all the icons. Look in your theme's index.theme file and see what icon theme it inherits. Look there for the battery icon. If you dont find it there, look at what theme that inherits..etc. You'll probably find the icon after 1 or two iterations.

you can find index.theme in /usr/share/icons/[theme name]/index.theme

share|improve this answer
add comment

Install lxappearance. Find the icon theme package that you want to theme the icon. Move this untarred package into /usr/share/themes. Open up lxappearance and select it from the font section.

share|improve this answer
    
I already tried changing the theme - the icon isn't coming from the theme. I added that info to the question. –  Shawn J. Goff May 27 '12 at 23:18
3  
With awesome, I suggest using the xfce4-power-manager panel applet. It follows the gtk2 theme installed. If you've using gnome, then its gonna try to render it with the gtk3 style's I'd guess.Personally, I've never managed to get gtk3 to play nice under any minimal environments. –  sublimepua May 28 '12 at 0:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.