Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alexanderwillner/energywatchdog
Simple macOS watchdog script that kills processes that consume a lot of energy
https://github.com/alexanderwillner/energywatchdog
bash bash-script daemon efficiency energy energy-monitor macos monitor monitoring monitoring-tool script shell shell-script
Last synced: about 20 hours ago
JSON representation
Simple macOS watchdog script that kills processes that consume a lot of energy
- Host: GitHub
- URL: https://github.com/alexanderwillner/energywatchdog
- Owner: AlexanderWillner
- Created: 2019-06-24T22:16:19.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-25T19:29:27.000Z (over 5 years ago)
- Last Synced: 2024-12-12T10:06:46.771Z (about 2 months ago)
- Topics: bash, bash-script, daemon, efficiency, energy, energy-monitor, macos, monitor, monitoring, monitoring-tool, script, shell, shell-script
- Language: Shell
- Homepage:
- Size: 3.1 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# macOS Energy Watchdog
## Summary
Simple macOS watchdog script that kills processes that consume a lot of energy.
![Notification Screenshot](img/notification.png "Notification Screenshot")
## Description
When working mobile your MacBook should run as long as possible. However, sometimes tasks in the background drain the battery significantly. Often this is only recognized when a low energy warning pops up. This simple script runs in the background as an agent and kills selected processes, in case they are consuming too much of the CPU (e.g. ```> 80%```) within a small time frame (e.g. ```1 minute```).
## Usage
You should modify the header of the file ```ws.willner.energywatchdog.sh``` as needed before installing the agent. The ```make``` commands:
```
$ make
Nothing really to make, but there are some available commands:
* run : run application to test it
* install : install application as an agent
* remove : remove agent
* feedback : create a GitHub issue
* style : style bash scripts
* harden : harden bash scripts
```## Screenshots
The output when running the script manually. Here ```Messages.app``` gets killed.
![Shell Screenshot](img/shell.png "Shell Screenshot")