Add better laptop support

This commit is contained in:
davidovki 2023-03-01 00:15:29 +00:00
parent 1e137b842f
commit 51292e49bb
14 changed files with 30 additions and 25 deletions

4
scripts/battery_level Executable file
View file

@ -0,0 +1,4 @@
#!/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