diff options
author | Patrick Simianer <p@simianer.de> | 2016-04-16 16:34:33 +0200 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2016-04-16 16:34:33 +0200 |
commit | 95b3e4bb744932ce4eac14bb350cc0455d15848a (patch) | |
tree | c96093d9667c87264a8820d876041fe96b068f57 /battery-charge | |
parent | fca926851e1d56eeb0044727fe976252d646f48d (diff) |
mv
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 }')%" + |