Some Windows and Linux script files of regular use.
Will need to execute some files with Administrator.
LaptopBatteryNotifier.sh
is for Linux OS.LaptopBatteryNotifier.vbs
is for Windows OS.
- Search for
Startup Applications Preferences
- Click
Add
to 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__percent
andfull_battery_percent
respectively. - You can also disable the notifications by commenting out the
notify-send ...
commands.