awesomewm/modules/battery/util.lua

14 lines
289 B
Lua
Raw Normal View History

2022-07-16 16:11:20 -07:00
local battery = {}
2022-07-16 17:41:00 -07:00
local script = conf_dir .. "modules/battery/battery.fish"
2022-07-16 16:11:20 -07:00
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