Skip to content

JozanLeClerc/lowbat-gnu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

118 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lowbat

Very small program for GNU/Linux that runs in the background and warns you when your battery is low until you plug your laptop in.

Dependencies

  • libnotify
  • espeak
  • make
  • gcc

Installation

Open a terminal and run these commands:

git clone https://github.com/JozanLeClerc/lowbat.git
cd lowbat
make
sudo make install

Next you must find a way to get the script running right after loging in. Add this to your startup programs manager/rc file of choice:

lowbat > /dev/null 2>&1 &

Note: to get notifications, make sure dunst is running in the background. In your startup programs manager/rc:

dunst > /dev/null 2>&1 &

Options

Only one option is available:

  • --say [MESSAGE] allows you to set an audio warning message when lowbat is active. By default lowbat doesn’t send audio notifications and will only use notify-send.

Examples of use:

lowbat --say "your custom message" > /dev/null 2>&1 &

Uninstallation

sudo make uninstall

See also

For more informations, check man lowbat.

About

Lightweight low battery notifier for GNU/Linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors