From 35a2dd3734f1d31060fe28837cf0e1d947c8d6f4 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sun, 17 Apr 2022 10:46:59 -0500 Subject: reorganize all scripts --- old/shblr | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100755 old/shblr (limited to 'old/shblr') 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 ))%" -- cgit v1.2.3