Skip to content

Some Windows-batch-files and Linux-shell-files of regular use.

Notifications You must be signed in to change notification settings

abdulmoizhussain/bat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.bat

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.

To run LaptopBatteryNotifier.sh at system-startup in background:

  • Search for Startup Applications Preferences
  • Click Add to create a new Additional 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.
  • Optional:

  • If you want to modify reminding-interval, minimum-battery and maximum-battery, you can modify these variables sleep_time_in_seconds, low_battery__percent and full_battery_percent respectively.
  • You can also disable the notifications by commenting out the notify-send ... commands.