Other Where is i3 battery's path?

ldgc

Active Member

Reaction score: 46
Messages: 194

Greetings :)
Battery's path in Linux is /sys/class/power_supply/Bat%d/uevent, so where is in FBSD?
 
Last edited:

Phishfry

Son of Beastie

Reaction score: 1,571
Messages: 4,536

There is a sysctl for that:
sysctl hw.acpi.battery

This too:
acpiconf -i 0
 
OP
OP
ldgc

ldgc

Active Member

Reaction score: 46
Messages: 194

But I want the value to be displayed in the status bar :(
 

asteriskRoss

Well-Known Member

Reaction score: 137
Messages: 420

I found I didn't need the path= statement in /usr/local/etc/i3status.conf. The following works fine for me:
Code:
order += "battery 0"

battery 0 {
   format = "%status %percentage %remaining"
   integer_battery_capacity = true
   low_threshold = 15
   threshold_type = percentage
}
 

Minbari

Well-Known Member

Reaction score: 205
Messages: 391

Mine looks like this:
Code:
battery 0 {
        format = "%status %percentage %remaining %emptytime" 
        last_full_capacity = true
        integer_battery_capacity = true
        low_threshold = 10
        threshold_type = percentage
        hide_seconds = true
        format_down = " No bat"
        status_unk = " "
        status_chr = " "
        status_bat = " "
        status_full = " "
}
 
Top