dotfiles/systemd/system/log_battery.service

10 lines
251 B
SYSTEMD
Raw Normal View History

2023-08-28 20:05:11 -06:00
[Unit]
Description=Log the current battery charge
Wants=log_battery.timer
[Service]
User=root
Group=root
Type=oneshot
ExecStart=/usr/local/bin/log_battery.sh /org/freedesktop/UPower/devices/battery_BAT0 /home/emiliko/safe/loggers/battery/battery.csv