This script monitors CPU load on your Ubuntu system and sends a desktop notification when the CPU load exceeds 80%. It is designed to run automatically at startup, ensuring you are always aware of high CPU usage.
- Monitors CPU load in real-time.
- Sends a desktop notification when CPU load exceeds 80%.
- Runs automatically at startup.
- Easy to install and uninstall.
- Ubuntu (or any Debian-based Linux distribution).
notify-send(usually pre-installed on Ubuntu).
- Clone the repository:
git clone https://github.com/your-username/cpu-load-alert.git cd cpu-load-alert - Run the installation script:
chmod +x install.sh ./install.sh
- Download the repository as a ZIP file:
wget https://github.com/your-username/cpu-load-alert/archive/main.zip
- Unzip the file:
unzip main.zip cd cpu-load-alert-main - Run the installation script:
chmod +x install.sh ./install.sh
This will:
- Copy the script to
/usr/local/bin. - Create a
.desktopfile in~/.config/autostartto run the script at startup. - Make the script executable.
To remove the script and stop it from running at startup, run:
chmod +x uninstall.sh
./uninstall.shFor quick installation, run the following command:
bash <(curl -s https://raw.githubusercontent.com/your-username/cpu-load-alert/main/install.sh)