diff options
Diffstat (limited to 'init.lua')
-rw-r--r-- | init.lua | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -72,6 +72,7 @@ for i, w in pairs(_M) do end -- }}} + -- {{{ Local functions -- {{{ Update a widget local function update(widget, reg, disablecache) @@ -170,6 +171,7 @@ end -- }}} -- }}} + -- {{{ Exposed functions -- {{{ Register a widget function register(widget, wtype, format, timer, warg) @@ -245,6 +247,16 @@ function cache(type) end -- }}} +-- {{{ Force update of widgets +function force(widgets) + if type(widgets) == "table" then + for _, w in pairs(widgets) do + update(w, nil, true) + end + end +end +-- }}} + -- {{{ Suspend all widgets function suspend() for w, i in pairs(registered) do |