sudo pacman -S tpacpi-bat
sudo nvim /etc/conf.d/tpacpi
# modify the values of start and stop threshold a number between 1-99
BATTERY="0"
START_THRESHOLD="40"
STOP_THRESHOLD="80"
sudo systemctl enable tpacpi-bat
sudo yay -S tp-battery-mode
sudo nvim /etc/tp-battery-mode.conf
# modify the following values to your liking
START_THRESHOLD=85
STOP_THRESHOLD=90
sudo systemctl start tp-battery-mode
https://www.thinkwiki.org/wiki/Tpacpi-bat https://github.com/teleshoes/tpacpi-bat https://wiki.archlinux.org/title/Tp-battery-mode