]> git.madduck.net Git - etc/awesome.git/blobdiff - widgets/contrib/tpbat/init.lua

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

mpd: missing icon fix
[etc/awesome.git] / widgets / contrib / tpbat / init.lua
index 8b53a4b25f986c9b294a3cc137478410289ef57b..d96c2d8f7b2c4f1b5daf38c03cd55c4b75a881b6 100644 (file)
@@ -17,7 +17,6 @@
 local debug        = { getinfo = debug.getinfo }
 local newtimer     = require("lain.helpers").newtimer
 local first_line   = require("lain.helpers").first_line
-local beautiful    = require("beautiful")
 local naughty      = require("naughty")
 local wibox        = require("wibox")
 
@@ -43,7 +42,7 @@ end
 function tpbat.show(t_out)
     tpbat.hide()
 
-    local bat   = self.bat
+    local bat   = tpbat.bat
 
     if bat == nil or not bat:installed() then return end