You are not logged in.

#26 2021-02-25 20:00:13

ghorvath
Member
Registered: 2015-10-01
Posts: 154

Re: xfce4-power-manager systray icon missing on Debian Bullseye

ceeslans wrote:
DeepDayze wrote:

Then maybe a tint2 executor would be a good workaround to correct this "bug". Perhaps share your executor setup for this?

Here you go.
You can either set the icon path to the 'Papirus' panel icons in /usr/share/icons - or to the icon folder in ~/.config/tint2 (grab the archive in below link).
The script is set to the commonly used BAT0 levels. If so needed, change the path to BAT1.

~/.config/tint2/executors/battery

#!/bin/bash

iconpath="/usr/share/icons/Papirus-Dark/24x24/panel/"
#iconpath="$HOME/.config/tint2/executors/icons/battery/"

status=$(cat /sys/class/power_supply/BAT0/status)
perc=$(cat /sys/class/power_supply/BAT0/capacity)

if [[ $status = "Discharging" ]]; then
	if [[ $perc -ge 91 ]]; then
		echo "${iconpath}battery-full.svg"
		echo "$perc%"
	elif [[ $perc -ge 71 ]]; then
		echo "${iconpath}battery-good.svg"
		echo "$perc%"
		elif [[ $perc -ge 51 ]]; then
			echo "${iconpath}battery-medium.svg"
			echo "$perc%"
			elif [[ $perc -ge 31 ]]; then
				echo "${iconpath}battery-low.svg"
				echo "$perc%"
				elif [[ $perc -ge 16 ]]; then
					echo "${iconpath}battery-caution.svg"
					echo "$perc%"
					elif [[ $perc -ge 1 ]]; then
						echo "${iconpath}battery-empty.svg"
						echo "$perc%"
	fi

elif [[ $status = "Charging" ]]; then
	if [[ $perc -ge 90 ]]; then
		echo "${iconpath}battery-full-charging.svg"
		echo "$perc%"
	elif [[ $perc -ge 70 ]]; then
		echo "${iconpath}battery-good-charging.svg"
		echo "$perc%"
		elif [[ $perc -ge 50 ]]; then
			echo "${iconpath}battery-medium-charging.svg"
			echo "$perc%"
			elif [[ $perc -ge 30 ]]; then
				echo "${iconpath}battery-low-charging.svg"
				echo "$perc%"
				elif [[ $perc -ge 15 ]]; then
					echo "${iconpath}battery-caution-charging.svg"
					echo "$perc%"
					elif [[ $perc -ge 1 ]]; then
						echo "${iconpath}battery-empty-charging.svg"
						echo "$perc%"		
	fi

else
	echo "${iconpath}battery-full-charged.svg"
	echo "$perc%"
fi

tint2rc configuration for the battery executor (adept to your personal preferences)

#-------------------------------------
# Executor	(battery status)
execp = new
execp_command = ~/.config/tint2/executors/battery
execp_interval = 15
execp_has_icon = 1
execp_cache_icon = 0
execp_continuous = 0
execp_markup = 1
execp_tooltip = 
execp_lclick_command = b=$(acpi -b) && notify-send "$b"
execp_rclick_command = xfce4-power-manager -c
execp_mclick_command = 
execp_uwheel_command = 
execp_dwheel_command = 
execp_font = Noto Sans 8
execp_font_color = #eeeeee 100
execp_padding = 3 0 2
execp_background_id = 0
execp_centered = 0
execp_icon_w = 24
execp_icon_h = 24

here is the archive with the Papirus *.svg icons as called by the executor script.
~

This code doesn't give me the icons to the tint panel, only the percentage value. I do have the proper path for the icons, and when I run the executor from a terminal, it gives me the correct icon file path.

Is there something trivial I'm missing here?

The only change I did to the lithium default tint2 config file is this line:

panel_items = PTSBCP

and of course I added the lines above to the end of the tint2 config file.

What else would be needed from me so someone could help me troubleshoot this?

Thanks,
ghorvath

Offline

#27 2021-02-26 09:00:56

ceeslans
Member
Registered: 2015-09-30
Posts: 107

Re: xfce4-power-manager systray icon missing on Debian Bullseye

ghorvath wrote:

The only change I did to the lithium default tint2 config file is this line:

panel_items = PTSBCP

and of course I added the lines above to the end of the tint2 config file.

What else would be needed from me so someone could help me troubleshoot this?

Noticed that your panel_items line doesn't include an 'E' for the executor.
It should look something like this:

panel_items = PTESBCP

hope this helps

Offline

#28 2021-02-26 10:50:42

ghorvath
Member
Registered: 2015-10-01
Posts: 154

Re: xfce4-power-manager systray icon missing on Debian Bullseye

Noticed that your panel_items line doesn't include an 'E' for the executor.
It should look something like this:

panel_items = PTESBCP

hope this helps

This is exactly what I needed. Works perfectly now. Thanks!

Offline

#29 2021-05-29 00:20:11

kozimodo
Member
Registered: 2015-10-04
Posts: 70

Re: xfce4-power-manager systray icon missing on Debian Bullseye

I just installed Beryllium on a "new" laptop that I was gifted and it is not that the power manager icon is missing from the theme but that as pointed out by manyroads, it is black.  A different tint2 configuration (lithium-light.tint2rc) works fine.

Last edited by kozimodo (2021-05-29 00:20:45)

Offline

#30 2021-05-29 01:05:54

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 8,003
Website

Re: xfce4-power-manager systray icon missing on Debian Bullseye

This issue still needs work, obviously.
Without a battery (ie AC only) I get the same "icon missing" icon with both regular lithium and lithium-light tint2s.

I need to install Beryllium on a real laptop to test the battery icon issue more. That is a bit complicated because of the encrypted drive I have...

Since we are already shipping a tweaked papirus icon theme with a couple of substituted icons, once we knew the icon names needed to make this work again it should be easy enough to add them in. Maybe even symlinks would be enough.

Does anyone know if xfce4-power-manager has changed recently?
Needs some more websearching maybe...

Last edited by johnraff (2021-05-29 01:12:15)


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#31 2021-05-29 03:04:22

hhh
Meep!
Registered: 2015-09-17
Posts: 11,816
Website

Re: xfce4-power-manager systray icon missing on Debian Bullseye

Offline

#32 2021-05-29 07:49:15

johnraff
nullglob
From: Nagoya, Japan
Registered: 2015-09-09
Posts: 8,003
Website

Re: xfce4-power-manager systray icon missing on Debian Bullseye

^The latter I think, but there were a lot of changes between buster & bullseye.
That release came out in December but I couldn't see any commits after that whose titles looked at all relevant:
https://gitlab.xfce.org/xfce/xfce4-powe … its/master

The issue turns up here and there, but because it's a systray icon the xfce devs seem to be giving it low priority, as something only for hacked-together systems (like BL), not regular xfce which uses the xfce4 panel.

Some links (including a couple that appeared early in this thread):
https://gitlab.xfce.org/xfce/xfce4-powe … issues/104
https://forum.xfce.org/viewtopic.php?id=14578
https://bbs.archlinux.org/viewtopic.php?id=262003
https://github.com/PapirusDevelopmentTe … ssues/2484
https://github.com/PapirusDevelopmentTe … ssues/2615
https://forum.manjaro.org/t/battery-ico … ager/57775

There was a hint about making symlinks in the icon theme that might conceivably help...
Needs some more digging into upower?


...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), idle Twitterings and GitStuff )

Introduction to the Bunsenlabs Lithium Desktop

Offline

#33 2021-05-29 21:30:18

DeepDayze
Like sands through an hourglass...
From: In Linux Land
Registered: 2017-05-28
Posts: 1,239

Re: xfce4-power-manager systray icon missing on Debian Bullseye

hhh wrote:

I think it's the versioning scheme that changed to bring it into line with XFCE.


Real Men Use Linux

Offline

#34 2021-05-29 22:45:11

hhh
Meep!
Registered: 2015-09-17
Posts: 11,816
Website

Re: xfce4-power-manager systray icon missing on Debian Bullseye

^ Right, what John said, but still a bunch of upgrades.

Offline

Board footer

Powered by FluxBB