summaryrefslogtreecommitdiff
path: root/old/shblr
diff options
context:
space:
mode:
Diffstat (limited to 'old/shblr')
-rwxr-xr-xold/shblr14
1 files changed, 0 insertions, 14 deletions
diff --git a/old/shblr b/old/shblr
deleted file mode 100755
index 4570afc..0000000
--- a/old/shblr
+++ /dev/null
@@ -1,14 +0,0 @@
-#!/bin/sh
-energy_now_total=0
-energy_full_total=0
-for bat in /sys/class/power_supply/BAT?*; do
- echo "`basename $bat`: \n" \
- "├─Capacity:\t\t`cat $bat/capacity`% \n" \
- "├─Energy Now:\t\t`cat $bat/energy_now` \n" \
- "├─Energy Full:\t\t`cat $bat/energy_full` \n" \
- "├─Energy Full Design:\t`cat $bat/energy_full_design` \n" \
- "└─Health:\t\t$(( (`cat $bat/energy_full` * 100) / `cat $bat/energy_full_design` ))% "
- energy_now_total=$(( energy_now_total + `cat $bat/energy_now` ))
- energy_full_total=$(( energy_full_total + `cat $bat/energy_full` ))
-done
-echo "\nTotal Capacity:\t$(( (energy_now_total * 100) / energy_full_total ))%"