From 76b8978ef2d75ba8930ef263afb4a2d583c629c4 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Wed, 29 Jul 2009 22:20:32 +0200 Subject: [PATCH] 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 --- bat.lua => batat.lua | 4 ++-- init.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename bat.lua => batat.lua (96%) diff --git a/bat.lua b/batat.lua similarity index 96% rename from bat.lua rename to 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")