Skip to content

Script to perform actions when battery level is out of specified range

Notifications You must be signed in to change notification settings

Hephaestus14089/Power-Notify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

Power-Notify

Dispatch notifications when battery power is out of user specified range.

Installation

Just download the power-notify.sh bash script.

wget https://raw.githubusercontent.com/Hephaestus14089/Power-Notify/main/power-notify.sh

And make it executable.

chmod +x power-notify.sh

Usage

Provide the lower limit and upper limit while executing the script.

./power-notify.sh <lower_limit> <upper_limit>

A single argument will be treated as the lower_limit.

./power-notify.sh <lower_limit>

The limits are interpreted as battery charge percentages.

Tips

A nice practice is making the script run as soon as the diplay server is started.
This can be achieved by putting the script execution command in a file such as .xinitrc.

About

Script to perform actions when battery level is out of specified range

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages