Scripts/battery_monitor.sh

4 lines
124 B
Bash
Raw Normal View History

2023-04-09 07:14:40 -04:00
#!/bin/zsh
2022-03-30 17:20:58 -04:00
BATTERY_PATH="/sys/class/power_supply/BAT1"
watch -tn 1 "cat $BATTERY_PATH/status && cat $BATTERY_PATH/capacity"