diff options
Diffstat (limited to 'battery-charge')
-rwxr-xr-x | battery-charge | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/battery-charge b/battery-charge new file mode 100755 index 0000000..9fd528f --- /dev/null +++ b/battery-charge @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "$(acpi | cut -d ' ' -f 4 | sed 's|[%,]||g' | awk '{ total += $1; count++ } END { print total/count }')%" + |