fe35e720f3554773453bb9a71b929987d4c46d5f
3 echo "{\"full_text\": \"$1\"}$2"
7 path
=/sys
/class
/power_supply
8 now
=$
(($
(cat "$path/BAT0/charge_now")*100/$
(cat "$path/BAT0/charge_full")))%
9 [ "$(cat "$path/ADP
1/online
")" -eq "1" ] && charge
="(C)"
10 [ "$now" = "100%" ] && now
="FULL"
16 echo "$(battery) | $(date +%x\ %X)"