summaryrefslogtreecommitdiff
path: root/avg_batt
blob: 9fd528f34963cf7d1775852fc59e6b0e76a72617 (plain)
1
2
3
4
#!/bin/sh

echo "$(acpi | cut -d ' ' -f 4 | sed 's|[%,]||g' | awk '{ total += $1; count++ } END { print total/count }')%"