]> git.rmz.io Git - dotfiles.git/commitdiff
awesome: replace utf8 char with single - to fix widget
authorSamir Benmendil <me@rmz.io>
Sun, 24 Nov 2019 15:08:27 +0000 (15:08 +0000)
committerSamir Benmendil <me@rmz.io>
Sun, 24 Nov 2019 15:08:27 +0000 (15:08 +0000)
awesome/widgets/battery_widget.lua

index dceaacd86ddcd25ca4b2b7467d15fbd78204f004..94d9b113b1048b7823415d62a8f8856a1c273204 100644 (file)
@@ -33,7 +33,7 @@ local function batclosure ()
     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! ⚡",