Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

battery-svg.widget tooltip not working in FreeBSD #339

Closed
fmc000 opened this issue Feb 8, 2025 · 2 comments
Closed

battery-svg.widget tooltip not working in FreeBSD #339

fmc000 opened this issue Feb 8, 2025 · 2 comments

Comments

@fmc000
Copy link

fmc000 commented Feb 8, 2025

Tooltip always shows "nan%" in beta16 (but the file is the same in current codebase). The problem is that the "bsdctl" is never invoked in the widget.

Simple fix below.

--- /usr/local/share/sfwbar/battery-svg.widget	2024-11-07 22:36:37.000000000 +0100
+++ battery-svg.widget	2025-02-08 09:29:24.918276000 +0100
@@ -1,3 +1,5 @@
+module ("bsdctl")
+
 set XBatteryLevel = If(!Ident(BSDCtl),XBatteryLeft / XBatteryTotal * 100,BSDCtl("hw.acpi.battery.life"))
 set XBatterySvgPlus = '<path style="fill:#FFF152;stroke:#000" d="m 27 23 25 0 -13 35 11 -4 -25 38 7 -38 -11 6 z"/>'
 set XBatterySvgMinus = '<path style="fill:#BB0000;stroke:none" d="m 19 50 28 0 0 8 -28 0 z"/>'
@LBCrion
Copy link
Owner

LBCrion commented Feb 8, 2025 via email

@LBCrion
Copy link
Owner

LBCrion commented Mar 14, 2025

I'll close this, as it seems to be resolved. Please do reopen if you still encounter this issue.

@LBCrion LBCrion closed this as completed Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants