From 0c99ce0dc0ef55810bf8e96d4244f4a6f093add0 Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Sun, 1 Nov 2015 21:44:25 +0100 Subject: [PATCH] Awesome: Fix battery display when going below limit --- .config/awesome/rc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/awesome/rc.lua b/.config/awesome/rc.lua index a461ca5c..f2f17bc3 100644 --- a/.config/awesome/rc.lua +++ b/.config/awesome/rc.lua @@ -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