You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
#!/bin/bash
|
|
|
|
main_dir=$PWD
|
|
|
|
bat_now=$(cat /sys/class/power_supply/BAT0/energy_now)
|
|
bat_full=$(cat /sys/class/power_supply/BAT0/energy_full)
|
|
|
|
echo $bat_now
|
|
echo $bat_full
|
|
|
|
#percent=$((bat_full/(bat_now*100)))
|
|
percent=$((10/(5*100)))
|
|
|
|
echo $percent
|