From b00e7c6cd076cbc3d069e7859bfaa39acb1aa6d7 Mon Sep 17 00:00:00 2001 From: mutlusun Date: Thu, 23 Feb 2017 22:48:39 +0100 Subject: [PATCH] get custom data from a widget --- init.lua | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/init.lua b/init.lua index 62b6980..54cd46f 100644 --- a/init.lua +++ b/init.lua @@ -260,6 +260,13 @@ function vicious.activate(widget) end -- }}} +-- {{{ Get custom widget format data +function vicious.getdata(myw, format, warg) + return helpers.format(format, myw(format, warg)) +end +-- }}} + + return vicious -- }}}