Skip to content

mrc2rules/CloseAppsOnBattery

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

CloseAppsOnBattery

Automatically closes power-hungry apps when your laptop switches to battery power — helping extend your battery life.

⚙️ How It Works

When you unplug your laptop, apps like Discord or Nvidia Broadcast may continue running in the background, draining your battery. This tool sets up a Task Scheduler trigger to automatically close such apps when switching to battery mode.

📥 Installation Guide

  1. Download the files.zip from Releases

  2. Extract the ZIP archive to any folder

  3. Open search, type Task Scheduler, and open it

  4. On the right-hand panel, click “Import Task…” Then select CloseAppsOnBattery.xml from the folder you extracted.

    Import Task
  5. In the imported task, go to the Actions tab → Select the listed action → Click Edit

    Actions Tab
  6. In the Start in (optional) field, paste the file directory path where you extracted the ZIP files

    Start In Directory

🛑 Apps Currently Closed by Default

Click to show list

🧠 Productivity / Communication

  • Spotify
  • Microsoft Teams
  • Zoom
  • OneDrive
  • Discord

🎮 Gaming / Game Launchers

  • Steam
  • Epic Games Launcher
  • EA Applications
  • NVIDIA Broadcast
  • Riot Client Services

Note

More apps will be added in future updates!

➕ Want to Add More Apps?

You can easily customize the script.

  1. Right-click CloseAppsOnBattery.bat → Open with Notepad
  2. Under the existing taskkill entries, add a new line in the format:
taskkill /IM NAMEOFAPP.exe /F

For example, to close Chrome:

taskkill /IM chrome.exe /F

Caution

Make sure you use the exact process name of the app (.exe), or it won’t work.

About

Closes power hungry apps when switching to battery to save battery on laptops

Resources

License

Stars

Watchers

Forks

Packages

No packages published