14 lines
298 B
Lua
14 lines
298 B
Lua
local battery = {}
|
|
|
|
local script = configuration_dir .. "modules/battery/battery.fish"
|
|
|
|
battery.watch = function(timeout, callback, widget)
|
|
awful.widget.watch(script, timeout, callback, widget)
|
|
end
|
|
|
|
battery.status = function(callback)
|
|
awful.spawn.easy_async(script, callback)
|
|
end
|
|
|
|
return battery
|