dotfiles/exec/batman.sh
2026-04-30 09:37:14 +02:00

2 lines
144 B
Bash
Executable file

#!/usr/bin/bash
echo $(wcalc -q "round($(cat /sys/class/power_supply/BAT1/charge_now)/$(cat /sys/class/power_supply/BAT1/charge_full) * 100)")%