aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2009-07-29 22:20:32 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2009-07-29 22:20:32 +0200
commit76b8978ef2d75ba8930ef263afb4a2d583c629c4 (patch)
treeb6064bd81c8a40432755ced272a5e69594de3885
parent9da374da4dbb53af6f01638410f3e2b8bd3763a7 (diff)
downloadvicious-legacy-76b8978ef2d75ba8930ef263afb4a2d583c629c4.tar.xz
Battery widget moved to batat.lua in preparation for a new bat widget.
It's time for a standalone battery widget that reads /proc/acpi/battery/*/{info,state} alone. However the old battery widget that uses 'acpitool' will not be deleted, let it serve as an alternative widget as a convenience. Some might also prefer it over reading multiple files in /proc
-rw-r--r--batat.lua (renamed from bat.lua)4
-rw-r--r--init.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/bat.lua b/batat.lua
index e6caacf..dba49fd 100644
--- a/bat.lua
+++ b/batat.lua
@@ -9,8 +9,8 @@ local table = { insert = table.insert }
-- }}}
--- Bat: provides state, charge, and remaining time for all batteries
-module("vicious.bat")
+-- Bat: provides state, charge, and remaining time for all batteries using acpitool
+module("vicious.batat")
-- {{{ Battery widget type
diff --git a/init.lua b/init.lua
index f84a243..70086b2 100644
--- a/init.lua
+++ b/init.lua
@@ -40,7 +40,7 @@ require("vicious.cpu")
require("vicious.thermal")
require("vicious.load")
require("vicious.uptime")
-require("vicious.bat")
+require("vicious.batat")
require("vicious.mem")
require("vicious.fs")
require("vicious.dio")