summaryrefslogtreecommitdiff
path: root/avg_batt
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2015-01-24 15:29:54 +0100
committerPatrick Simianer <p@simianer.de>2015-01-24 15:29:54 +0100
commitb0878f91c4ab2a8a61c524084ac6db702971b426 (patch)
tree747b70537e0a000fbbe649d4e993693db81a6ff8 /avg_batt
parentc60daeb4f53ab0f73991851d65dd51454c8fb064 (diff)
average battery
Diffstat (limited to 'avg_batt')
-rwxr-xr-xavg_batt4
1 files changed, 4 insertions, 0 deletions
diff --git a/avg_batt b/avg_batt
new file mode 100755
index 0000000..e7afeee
--- /dev/null
+++ b/avg_batt
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo "$(acpi | cut -d' ' -f4|sed 's|%||'|avg|round 0)%"
+