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
This commit is contained in:
parent
9da374da4d
commit
76b8978ef2
|
@ -9,8 +9,8 @@ local table = { insert = table.insert }
|
||||||
-- }}}
|
-- }}}
|
||||||
|
|
||||||
|
|
||||||
-- Bat: provides state, charge, and remaining time for all batteries
|
-- Bat: provides state, charge, and remaining time for all batteries using acpitool
|
||||||
module("vicious.bat")
|
module("vicious.batat")
|
||||||
|
|
||||||
|
|
||||||
-- {{{ Battery widget type
|
-- {{{ Battery widget type
|
2
init.lua
2
init.lua
|
@ -40,7 +40,7 @@ require("vicious.cpu")
|
||||||
require("vicious.thermal")
|
require("vicious.thermal")
|
||||||
require("vicious.load")
|
require("vicious.load")
|
||||||
require("vicious.uptime")
|
require("vicious.uptime")
|
||||||
require("vicious.bat")
|
require("vicious.batat")
|
||||||
require("vicious.mem")
|
require("vicious.mem")
|
||||||
require("vicious.fs")
|
require("vicious.fs")
|
||||||
require("vicious.dio")
|
require("vicious.dio")
|
||||||
|
|
Loading…
Reference in New Issue