MacPowerAlert is a macOS application that monitors your Mac's battery status and notifies you when the battery is at 20% or 80%.
- Make sure you have Xcode installed on your system.
- Clone the repository:
git clone https://github.com/your-username/MacPowerAlert.git
- Open the project in Xcode:
open MacPowerAlert.xcodeproj
- Configure build settings and select "My Mac" as the target device.
- Build the project.
- Launch the application.
- The app will start monitoring the battery status every minute.
- You'll receive notifications when the battery is at 20% or 80%.
Keeping your Mac's battery between 20% and 80% charge can help extend the battery's lifespan. Recharging the battery when it's around 20% and stopping the charge when it reaches 80% can reduce stress on the battery and slow down the aging process.
To enable MacPowerAlert to start automatically with your Mac, follow these steps:
- Go to "System Preferences" on your Mac.
- Select "Users & Groups."
- In the "Login Items" tab, add MacPowerAlert to the list of login items.
- Ensure the added application is checked in the "Hide" column.
If you want to contribute to this project, follow these steps:
- Fork the project.
- Create a branch for your feature:
git checkout -b feature-new
- Commit your changes:
git commit -m 'Add new feature'
- Push your branch:
git push origin feature-new
- Submit a pull request.
- Davide Tamburrelli - tambu.dt@gmail.com
- [Other Contacts or Social Media]