mirror of https://git.davidovski.xyz/dot.git
5 lines
149 B
Plaintext
5 lines
149 B
Plaintext
|
#!/bin/sh
|
||
|
full=$(cat /sys/class/power_supply/BAT0/charge_now)
|
||
|
now=$(cat /sys/class/power_supply/BAT0/charge_full)
|
||
|
echo $full / $now \* 100 | bc -l
|