You are not logged in.
Hi guys
Preferences/Tint2/Edit Tint2s/Running Tint2s shows the one I've chosen in Tint2 Manager - beryllium.tint2rc.
# Panel
panel_items = PTSCP
As per https://forums.bunsenlabs.org/viewtopic.php?id=450 and https://github.com/BunsenLabs/tint2/blo … c/tint2.md battery status should show up by adding B in the panel_items string, but done that (PTSCBP), restarted tint2, and nothing happens.
Interestingly, when I open Default Tint2rc in Edit Tint2s menu, Geany opens lithium.tint2rc, which was the original target of .config/Tint2/tint2rc symlink, even after I've changed the default to beryllium.tint2rc.
I fixed the symlink manually and reloaded tint2. No change. I removed the symlink and copied beryllium.tint2rc to tint2rc, reloaded tint2; still no change. Rebooting doesn't help either.
What am I not understanding this time?
Last edited by Peregrino69 (2023-01-28 10:14:55)
Offline
As per https://forums.bunsenlabs.org/viewtopic.php?id=450 and https://github.com/BunsenLabs/tint2/blo … c/tint2.md battery status should show up by adding B in the panel_items string, but done that (PTSCBP), restarted tint2, and nothing happens.
You need to have a section for the battery in tint2. You could use:
#-------------------------------------
# Battery
battery = 1
# boolean (0 or 1) : Whether to enable the battery item.
battery_hide = never
# never/integer (0 to 100) : At what battery percentage the battery item is hidden.
battery_low_status = 15
# integer: At what battery percentage the low command is executed.
battery_low_cmd = notify-send "battery low"
# notify-send "battery low" : Command to execute when the battery is low.
bat1_font = sans 9
# [FAMILY-LIST] [STYLE-OPTIONS] [SIZE]
bat2_font = sans 9
#[FAMILY-LIST] [STYLE-OPTIONS] [SIZE]
battery_font_color = #ffffff 100
# color opacity (0 to 100)
battery_padding = 1 0
#horizontal_padding vertical_padding
battery_background_id = 0
# integer : Which background to use for the battery.
Instead of show status in the panel, you can let xfce4-power-manager set an power icon in the systray. Run xfce4-power-manager-settings in terminal, enable status notifications and system tray icon. See https://docs.xfce.org/xfce/xfce4-power- … references
// Regards rbh
Please read before requesting help: "Guide to getting help", "Introduction to the Bunsenlabs Lithium Desktop" and other help topics under "Help & Resources" on the BunsenLabs menu
Offline
Leaving aside the battery button for a moment:
Preferences/Tint2/Edit Tint2s/Running Tint2s shows the one I've chosen in Tint2 Manager - beryllium.tint2rc.
OK
Interestingly, when I open Default Tint2rc in Edit Tint2s menu, Geany opens lithium.tint2rc
Sorry about this - beryllium.tint2rc is being opened OK, but the comment at the top of the file still says lithium.tint2rc. It's the right file though - check the filename. There is a separate lithium.tint2rc with slightly different contents.
...which was the original target of .config/Tint2/tint2rc symlink
Yes, tint2rc is a symlink pointing to beryllium.tint2rc
I fixed the symlink manually
It should already have been pointing to beryllium.tint2rc. What did you change it from/to?
I removed the symlink and copied beryllium.tint2rc to tint2rc, reloaded tint2; still no change. Rebooting doesn't help either.
So, one way or the other, you are using the correct tint2rc file.
So why isn't the battery item working?
One point: Debian now ship tint2 16.7-1 in Bullseye so that's what we are using in Beryllium, not the BL fork in GitHub. The tint2 docs now refer to tint2 17.0.2 but the battery settings don't seem to have changed. You might find a hint there.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
Booted up this morning, and now battery percentage is showing just where I configured it, between clock and power button. Go figure
@rbh - sorry for being incomplete, the Battery section in the rc files is present.
@johnraff - thx for the clarification on the rc files. The original tintrc symlink was however pointing to lithium's file, and changing the default in Tint2 Manager didn't change it. This installation is originally Lithium, recently upgraded.
Thanks again, guys
Offline
The original tintrc symlink was however pointing to lithium's file, and changing the default in Tint2 Manager didn't change it. This installation is originally Lithium, recently upgraded.
Ah yes, the upgrade will not overwrite a user's personal config files, so yours would still have been what came with Lithium. And there would have been no beryllium.tint2rc at all.
You can get any current user config files you want by copying them from /usr/share/bunsen/skel, or alternatively if you run 'bl-user-setup' it will offer to import any files that are different from what you have. You can check each one and agree or refuse.
...elevator in the Brain Hotel, broken down but just as well...
( a boring Japan blog (currently paused), now on Bluesky, there's also some GitStuff )
Offline
One other little thing.. The battery status will appear/disappear depending on (1) the setting of the battery_hide parameter in tint2rc (explained in rbh's sample above) and (2) the battery's charge level. I set it thus
battery_hide = never
so it is always visible, and I no longer wonder if tint2 is acting funny.
Offline