Some Windows and Linux script files of regular use.
Will need to execute some files with Administrator.
LaptopBatteryNotifier.shis for Linux OS.LaptopBatteryNotifier.vbsis for Windows OS.
- Search for
Startup Applications Preferences - Click
Addto create a newAdditional startup program - Browse for the the Linux script file and select
LaptopBatteryNotifier.sh - Now modify the command:
-
/home/username/LaptopBatteryNotifier.sh
- to this:
-
bash /home/username/LaptopBatteryNotifier.sh
- coz this script needs to be executed with bash.
-
- Can name it like: Battery Notifier
- Now the script will be automatically started in background upon next restart.
- If you want to modify reminding-interval, minimum-battery and maximum-battery, you can modify these variables
sleep_time_in_seconds,low_battery__percentandfull_battery_percentrespectively. - You can also disable the notifications by commenting out the
notify-send ...commands.