blob: e326673cae2fff9c6d782bbe7cd55c8256da851c (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/sh
while true
do
b0="/sys/class/power_supply/BAT0"
bat="$(cat $b0/capacity)"
# batl="$(cat $b0/capacity_level)"
vols="$(b-pavols)"
load="$(cat /proc/loadavg | cut -d' ' -f1)"
time="$(date +'%a, %d %b %Y %R %z')"
printf "%s%% | %s | %s | %s\n" \
"$bat" "$vols" "$load" "$time"
sleep 5
done
|