Scripts/battery_monitor.sh
2023-04-09 13:14:40 +02:00

4 lines
124 B
Bash
Executable File

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