Awesome: Fix battery display when going below limit

master
Pierre Neidhardt 2015-11-01 21:44:25 +01:00
parent a6e7d837b0
commit 0c99ce0dc0
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ if ostype == "Linux" then
vicious.register(batwidget, vicious.widgets.bat,
function (widget, args)
-- We check if time is displayed (otherwise it's 'N/A'), and if minutes are less than limit.
if args[1] == "-"
if args[1] == ""
and string.len(args[3]) == 5
and tonumber(string.sub(args[3],1,2)) == 0
and tonumber(string.sub(args[3],4,5)) <= batlimit