Skip to content

Monitor and notify when battery reaches optimization level for GNU/Linux based systems.

License

Notifications You must be signed in to change notification settings

StellarSand/Battery-Notifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Battery-Notifier

Monitor and notify when battery reaches a certain set level on GNU/Linux systems.

Contents

Preview

widget-factory

Installation

1. Clone this repo:

git clone https://github.com/the-weird-aquarian/Battery-Notifier.git

2. Move into the project directory:

cd Battery-Notifier

3. Give executable permissions to the install script:

chmod +x install.sh

4. Run the install script:

./install.sh

Available options

 -h,    --help              Show this help message
 -c,    --charged           Set battery charged percent (default = 80)
 -l,    --low               Set battery low percent (default = 20)
 -s,    --sound             Set custom notification sound
 -r,    --repeat            Repeat notification at set interval (in seconds)
                            Default = 60 seconds, 0 = Notify only once

Usage

battery-notify -c 60 -l 40

Show notification every 15 seconds

battery-notify -r 15

Uninstall

If battery-notify has been installed, you can remove it by:

1. Clone this repo (if not done already):

git clone https://github.com/the-weird-aquarian/Battery-Notifier.git

2. Move into the project directory:

cd Battery-Notifier

3. Give executable permissions to the uninstall script:

chmod +x uninstall.sh

4. Run the uninstall script:

./uninstall.sh

Contributing

Pull requests can be submitted here. Any contribution to the project will be highly appreciated.

License

This project is licensed under the terms of MIT License.