eo is a simple yet effective shell script designed to help you maintain optimal battery health π on your Linux system. It periodically checks the battery status and sends notifications when the battery level exceeds a specified threshold while charging, prompting you to unplug the charger to preserve battery longevity. π
- Battery Monitoring: Checks the battery status and percentage every 10 minutes. β±οΈ
- Notification System: Sends a desktop notification when the battery level exceeds 80% while charging, reminding you to unplug for optimal battery health. π
- Easy Installation: Can be installed system-wide for convenient access. π₯
- Automatic Setup: Configures the script to run automatically on system startup. π
Before using eo, ensure that you have the following dependencies installed on your system:
acpi: A command-line utility for displaying battery status and information. π»libnotify: A library for sending desktop notifications. π¬
You can install these dependencies using your system's package manager.
- Clone the repository or download the script file. π₯
- Open a terminal and navigate to the directory containing the script. π₯οΈ
- Run the following command to install the script system-wide:
./eo.sh installThis will copy the script to /usr/bin/eo and make it accessible from anywhere on your system. π
After installation, you can use the following commands:
eo start: Start the script to monitor battery health. πeo install: Install the script to/usr/bin. π₯eo auto: Configure automatic setup to run the script on system startup. βοΈeo help: Display the help information. β
To configure eo to run automatically on system startup, use the auto command:
eo autoThis command will install the script (if not already installed) and add a line to your ~/.profile file to start the script on login. π
Contributions are welcome! If you encounter any issues or have suggestions for improvements, please open an issue or submit a pull request. π£