all repos — tint2 @ 3a733d7353a18a26f1d8f04b985555d9ea6c7841

fork of the tint2 desktop panel for my custom setup - only minimized windows across all desktops for the taskbar

battery: Update AC status on FreeBSD
o9000 o9000
commit

3a733d7353a18a26f1d8f04b985555d9ea6c7841

parent

8df9ed5977107a25966109d1955ed8cc998273c7

1 files changed, 3 insertions(+), 0 deletions(-)

jump to
M src/battery/freebsd.csrc/battery/freebsd.c

@@ -68,6 +68,9 @@ if (sysctlbyname("hw.acpi.battery.life", &sysctl_out, &len, NULL, 0) == 0)

state->percentage = sysctl_out; else err = -1; + + if (sysctlbyname("hw.acpi.acline", &sysctl_out, &len, NULL, 0) == 0) + state->ac_connected = sysctl_out; return err; }