local beautiful = require("beautiful")
local pairs = pairs
-module("battery_widget")
-
-- Battery (based on https://bitbucket.org/skrattaren/awesome/src/)
local limits = { {25, 5},
return function (_, args)
local state, charge = args[1], args[2]
if not charge then return end
- if state == "−" then
+ if state == "-" then
dirsign = "↓"
if charge <= nextlim then
naughty.notify({title = "⚡ Warning! ⚡",