This commit is contained in:
2022-11-09 21:37:11 +01:00
parent 77d4ed943b
commit bb326f371e
3 changed files with 7 additions and 14 deletions

View File

@ -7,17 +7,11 @@ stat=$(upower -d | grep -m1 state | sed -e 's/^.* //')
## if any argument
if [ $# -gt 0 ]; then
if [[ $stat == "charging" ]]; then
echo "$prct"
echo "BAT +$prct"
exit
fi
if [[ $prctonly -gt 30 ]]; then
echo " 🔋 $prct"
exit
fi
echo " 🪫 $prct"
echo "BAT -$prct"
exit
fi
echo $prct
echo $prct