From 08f22ad82edbe30606a8145a01ab18f2f6d71b4b Mon Sep 17 00:00:00 2001 From: Tim Keller <tjkeller.xyz> Date: Sun, 17 Nov 2024 23:39:40 -0600 Subject: delete .old dir since all is still stored in version control --- .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