Skip to content

A battery monitor that'll scream (i.e. an audible notification) "plug in" when it's running outta charge and "plug out" when it's overflowing with charge.

Notifications You must be signed in to change notification settings

susmit31/Battery-Monitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BAT-MON

A really tiny battery monitoring script to help out my dumb Linux battery monitor which only displays an alert when the battery's low. Of course, a visual notification requires you to be in front of the laptop in the first place. If you're not exactly in front of the laptop and it runs outta charge, it'll just silently shut itself off. And then there's the issue of overcharging: I'll plug it in and completely forget about the fact that it's been charging for, say, 4 hours. In this case, there's no notifications at all. So that's another problem.

So I wrote this small script that uses the Linux package espeak to yell at you when the battery goes below a certain limit, or if it's being charged, when the charge goes above a certain limit. This package is what's working under the hood for the Python speech synthesis library pyttsx3, so I guess the script should also work on Windows and Mac. It's been tested on Linux Mint 20.3 and Debian 11.

About

A battery monitor that'll scream (i.e. an audible notification) "plug in" when it's running outta charge and "plug out" when it's overflowing with charge.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published