]> git.rmz.io Git - dotfiles.git/blobdiff - awesome/widgets/battery_widget.lua
mpv: don't ignore vp9 codecs
[dotfiles.git] / awesome / widgets / battery_widget.lua
index dceaacd86ddcd25ca4b2b7467d15fbd78204f004..29e6fadf5c1de3f56bb89a8680b9b374fcd62901 100644 (file)
@@ -4,8 +4,6 @@ local naughty = require("naughty")
 local beautiful = require("beautiful")
 local pairs = pairs
 
-module("battery_widget")
-
 -- Battery (based on https://bitbucket.org/skrattaren/awesome/src/)
 
 local limits = { {25, 5},
@@ -33,7 +31,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! ⚡",