awesomewm/modules/battery/util.lua

12 lines
250 B
Lua
Raw Normal View History

2022-07-16 16:11:20 -07:00
local battery = {}
battery.watch = function(timeout, callback, widget)
2023-08-21 19:53:40 -07:00
awful.widget.watch("acpi --battery", timeout, callback, widget)
2022-07-16 16:11:20 -07:00
end
battery.status = function(callback)
2023-08-21 19:53:40 -07:00
awful.spawn.easy_async("acpi --battery", callback)
2022-07-16 16:11:20 -07:00
end
return battery