awesomewm/modules/battery/util.lua

14 lines
289 B
Lua

local battery = {}
local script = conf_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