Simple Power Manager is an easily programmable, lightweight alternative to gui / tray apps like xfce-power-manager
I updated the script to account for multiple laptop batteries.
Put spm somewhere on ‘$PATH’. The first run will generate a default config. Modify the default config accordingly and then fork it &