Scripts/battery_monitor.sh
2022-03-30 23:20:58 +02:00

4 lines
123 B
Bash
Executable File

#!/bin/sh
BATTERY_PATH="/sys/class/power_supply/BAT1"
watch -tn 1 "cat $BATTERY_PATH/status && cat $BATTERY_PATH/capacity"