You are not logged in.

#1 2014-01-15 15:16:25

Lehthanis
Member
Registered: 2013-09-26
Posts: 21

Spectrwm baraction.sh example for acpi battery...convert to non-acpi?

https://wiki.archlinux.org/index.php/Sp … sh_scripts

I've copied the baraction.sh script there, and it has a pretty beefy section at the beginning to pull battery info from acpi...I apparently don't have acpi battery on my laptop...but I can query the battery with cat /sys/class/power_supply/BAT0/energy_now

there's other things to query such as energy_full, power_now, power/, status, and a bunch of other stuff.

My problem is...state and info which is queried by the script above is not available to query by my battery.  I was wondering if someone familiar with shell scripting could work me up a quick battery status script?

Offline

Board footer

Powered by FluxBB