Skip to content
This repository has been archived by the owner on Oct 7, 2018. It is now read-only.

A program to auto open and close processes for battery saving.

License

Notifications You must be signed in to change notification settings

Ivolutio/BatterySaverAppKiller

Repository files navigation

BatterySaverAppKiller

This simple app shuts down and restarts chosen processes depending on the battery percentage to save battery.

Detailed Description

When your battery percentage ticks or becomes lower than the number you specified in the AppConfig.json file, it will try and find running processes with the names you specified and kill them. When your battery percentage becomes higher than your specified number or it starts charging, it will (try to) start them again. When this program is already running and you open it again, it will close the old one AND itself, so basically toggling itself.

Config

For configuration of this program, open AppConfig.json:

  • batteryPercentage: change this to the percentage the program should toggle on.
  • processNames: add the name of the processes you want to kill here. (e.g. [ "Discord", "Outlook" ] etc.)

To find the name of the process you want to add, the program creates the file RunningProcesses.txt, which lists all running processes at that time.