summaryrefslogtreecommitdiff
path: root/battery-charge
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2016-04-16 16:34:33 +0200
committerPatrick Simianer <p@simianer.de>2016-04-16 16:34:33 +0200
commit95b3e4bb744932ce4eac14bb350cc0455d15848a (patch)
treec96093d9667c87264a8820d876041fe96b068f57 /battery-charge
parentfca926851e1d56eeb0044727fe976252d646f48d (diff)
mv
Diffstat (limited to 'battery-charge')
-rwxr-xr-xbattery-charge4
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 }')%"
+