updated batperc and added fontcharlist
This commit is contained in:
1 parent
d4234ebf6a
commit
c451f3cdd9
2 files changed
+32
-4
No files matched your search
+4
-4
@@ -14,8 +14,8 @@ case "$1" in
|
||||
exit 1;
|
||||
fi
|
||||
for i in $batteries; do
|
||||
batfull=$(cat /sys/class/power_supply/$i/energy_full)
|
||||
batnow=$(cat /sys/class/power_supply/$i/energy_now)
|
||||
batfull=$(cat /sys/class/power_supply/$i/charge_full)
|
||||
batnow=$(cat /sys/class/power_supply/$i/charge_now)
|
||||
batperc=$((($batnow/($batfull/100))))
|
||||
|
||||
if [[ "$batperc" -le "20" ]]; then
|
||||
@@ -37,8 +37,8 @@ case "$1" in
|
||||
exit 1;
|
||||
fi
|
||||
for i in $batteries; do
|
||||
batfull=$(cat /sys/class/power_supply/$i/energy_full)
|
||||
batnow=$(cat /sys/class/power_supply/$i/energy_now)
|
||||
batfull=$(cat /sys/class/power_supply/$i/charge_full)
|
||||
batnow=$(cat /sys/class/power_supply/$i/charge_now)
|
||||
batperc=$((($batnow/($batfull/100))))
|
||||
|
||||
printf "$batperc \n"
|
||||
|
||||
Reference in new issue
Block a user