Remove redundant script

master
Hektor Misplon 2020-12-10 14:27:34 +01:00
parent 6a39b3c3ed
commit cb099d6db2
1 changed files with 0 additions and 20 deletions

View File

@ -1,20 +0,0 @@
#!/usr/bin/env bash
RED="\033[0;31m"
GREEN="\033[0;32m"
NC="\033[0m"
capacityStatus=$(cat /sys/class/power_supply/BAT0/capacity)
chargingStatus=""
if [ -f /sys/class/power_supply/AC/online ]; then
chargingStatus=$(cat /sys/class/power_supply/AC/online)
fi
if [ "$chargingStatus" == "1" ]; then
printf "Battery is ${GREEN}charging${NC}.\n"
elif [ "$chargingStatus" == "0" ]; then
printf "Battery is ${RED}discharging${NC}.\n"
fi
printf "$capacityStatus%% \n"