This Bash script monitors the fan boost mode of ASUS TUF laptops and sends notifications when the mode changes. It includes labels for different fan boost modes (Normal Mode, OverBoost, Silent Mode) and the ability to display an associated image in notifications.
inotify-tools
package (install using your package manager)libnotify
package (install using your package manager)yay -S tuf-fan-boost-notification-git
Other Distros
git clone https://github.com/MioKira/tuf-fan-boost-notification.git
cd tuf-fan-boost-notification
chmod +x FanNotifications.sh
./FanNotification.sh
Fan Boost Modes: The script maps numeric fan boost modes to labels (Normal Mode, OverBoost, Silent Mode). You can customize these labels in the get_mode_label function.
To ensure that the Fan Boost Mode Notification Script starts automatically with your system, you can add it to your system's startup applications. The steps vary depending on your desktop environment. Here are instructions for some common desktop environments:
Press Alt + F2
to open the Run Command dialog.
Type gnome-session-properties
and press Enter.
Click on "Add" and enter the following details:
/path/to/FanNotification.sh
(replace with the actual path to your script)Click "Add" and then close the Startup Applications Preferences.
Open System Settings.
Go to "Startup and Shutdown" -> "Autostart."
Click on "Add Script" and enter the following details:
/path/to/FanNotification.sh
(replace with the actual path to your script)Click "OK."
Open the XFCE Application Menu.
Go to "Settings" -> "Session and Startup."
Navigate to the "Application Autostart" tab.
Click "Add" and enter the following details:
/path/to/FanNotification.sh
(replace with the actual path to your script)Click "OK."
Open LXQt Configuration Center.
Go to "Session Settings."
Navigate to the "Autostart" tab.
Click "Add" and enter the following details:
/path/to/FanNotification.sh
(replace with the actual path to your script)Click "Add" and then close the Configuration Center.
Open the Cinnamon Menu.
Go to "Preferences" -> "Startup Applications."
Click "Add" and enter the following details:
/path/to/FanNotification.sh
(replace with the actual path to your script)Click "Add" and then close the Startup Applications dialog.
Adjust the command path accordingly to the actual location of your script. This process ensures that your fan boost notification script runs automatically when your desktop environment starts.
This script is licensed under the MIT License - see the LICENSE file for details.
Feel free to contribute by opening issues or submitting pull requests.
-Mohamed Tarek