This Lua script is meant to be used in awesome window manager. It is used to notify laptop users when battery is low or when battery is fully-charged. See pictures above for the results.
Just add battwarn.lua
file contents to $HOME/.config/awesome/rc.lua
and then (re)start your
awesomewm. That's all. See example directory for more practical explanation.