| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
Not all battery names start with "BAT", but so far I haven't seen any
non-battery power supplies that contain the required files.
|
| |
|
|
|
|
|
|
|
| |
I plugged a battery in and had no capacity data, which at the time
meant even the status (which was available) wouldn't be shown. Now,
status and capacity will be shown independently of each other, and if
capacity information is unavailable, charge will be shown instead.
|
| |
|
|
|
|
|
| |
Missing these resulted in an extra space being displayed after the
arrows.
|
|
The execline version was nice, but I think execline is not really
suitable for fairly complicated scripts that run once a second. I
frequently saw it as one of the most active processes on the system,
and it was probably really bad for power consumption!
Before rewriting in C++, I tried C, but the string handling was
extremely annoying, and Rust, but it can't do time stuff in the
standard library. I didn't want to have to pull in a library just for
this, so C++ it was.
My first C++ program, in fact!
|