You are not logged in.

#1 2020-12-25 03:50:08

duyinthee
Member
Registered: 2015-06-14
Posts: 130

xfce4 power manager has changed its battery tray icon?

I use Awesome WM and xfce4-power-manager for power management and to see tray icon on the bar.
After updating xfce4-power-manager to 4.16.0-1, the tray battery icon has changed from thin, tall green one to black one. So, it can not be seen any more because the bar color is black.

I have check xfce4-power-manager setting, there is no option tray icon type.
Is the xfce4-power-manager using theme icon?
How can I get the old one back?

Thanks in advance. I have googled a lot. But I can't find myself the solution.

Offline

#2 2020-12-25 04:32:03

toz
Member
Registered: 2011-10-28
Posts: 453

Re: xfce4 power manager has changed its battery tray icon?

Yes. It now uses the battery-level-* icon naming scheme.

Icon themes will need to be changed to accommodate. Which icon theme are you using?

Offline

#3 2020-12-25 07:43:40

duyinthee
Member
Registered: 2015-06-14
Posts: 130

Re: xfce4 power manager has changed its battery tray icon?

I am using Adwaita icon them.

Offline

#4 2020-12-25 15:17:26

toz
Member
Registered: 2011-10-28
Posts: 453

Re: xfce4 power manager has changed its battery tray icon?

For the Adwaita theme, you will need to create/replace proper battery-level-* icons on the scalable/status folder. Here is a sample script to automate this process. Adjust to suit. It basically creates an ~/.local/share/icons/Adwaita icon override folder and links the existing icons into the new naming format.

#!/bin/bash

mkdir -p ~/.local/share/icons/Adwaita/scalable/status
cd ~/.local/share/icons/Adwaita/scalable/status

ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-full.png battery-level-100-symbolic.png
ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-full.png battery-level-90-symbolic.png

ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-good.png battery-level-80-symbolic.png
ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-good.png battery-level-70-symbolic.png
ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-good.png battery-level-60-symbolic.png

ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-low.png battery-level-50-symbolic.png
ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-low.png battery-level-40-symbolic.png
ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-low.png battery-level-30-symbolic.png

ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-caution.png battery-level-20-symbolic.png
ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-caution.png battery-level-10-symbolic.png

ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-empty.png battery-level-0-symbolic.png

ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-full-charged.png battery-level-100-charged-symbolic.png 
ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-full-charging.png battery-level-100-charging-symbolic.png
ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-full-charging.png battery-level-90-charging-symbolic.png

ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-good-charging.png battery-level-80-charging-symbolic.png
ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-good-charging.png battery-level-70-charging-symbolic.png
ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-good-charging.png battery-level-60-charging-symbolic.png

ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-low-charging.png battery-level-50-charging-symbolic.png
ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-low-charging.png battery-level-40-charging-symbolic.png
ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-low-charging.png battery-level-30-charging-symbolic.png

ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-caution-charging.png battery-level-20-charging-symbolic.png
ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-caution-charging.png battery-level-10-charging-symbolic.png
ln -s /usr/share/icons/Adwaita/32x32/legacy/battery-caution-charging.png battery-level-0-charging-symbolic.png

sudo gtk-update-icon-cache /usr/share/icons/Adwaita

Offline

Board footer

Powered by FluxBB