6 lines
151 B
Bash
6 lines
151 B
Bash
|
date_formatted=$(date "+%m/%d/%Y - %l:%M %p - ")
|
||
|
|
||
|
battery_status=$(cat /sys/class/power_supply/BAT0/capacity)
|
||
|
|
||
|
echo $battery_status% - $date_formatted
|