awesomewm/modules/battery/util.lua

14 lines
298 B
Lua
Raw Normal View History

2022-07-16 16:11:20 -07:00
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