sudo nano /etc/systemd/system/battery-charge-threshold.service
[Unit] Description=Set battery charge threshold to 60% After=multi-user.target [Service] Type=oneshot ExecStart=/bin/bash -c 'echo 60 > /sys/class/power_supply/BAT0/charge_control_end_threshold' RemainAfterExit=yes [Install] WantedBy=multi-user.target
sudo systemctl daemon-reload sudo systemctl enable --now battery-charge-threshold.service