-- Base for widgets local awmtk2 = require("awmtk2") local wibox = require("wibox") local gears = require("gears") local awful = require("awful") local beautiful = require("beautiful") return function(args) local style = awmtk2.create_style("popuptitle",awmtk2.default,args.style) local templates = awmtk2.create_template_lib("popuptitle",awmtk2.templates,args.templates) local t = awmtk2.build_templates(templates,style) local widget = wibox.widget(t.container(t.article({ icon = root_path.."/themes/"..global.theme.."/"..args.icon, title = args.title }))) return widget end