浏览代码
~/.bin/warn-if-low.sh: Warn at lower level.
My current main computer has a better battery so warning me 20 minutes
prior to actually going down is just annoying. So, here is the future!
Thinking about this, I could probably detect this... There should be a
discharge rate or something like that. Ok, as it turns out there is
`/sys/class/power_supply/BAT0/{alarm,capacity}` where `alarm` could be
the "critical" threshold and capacity could be the current percentage.
Laters, I think.
Bye. :)
(I like these mini-posts, further announcements in a future log post.)