|
|
@ -16,7 +16,7 @@ local naughty = require("naughty") |
|
|
|
|
|
|
|
return function(args) |
|
|
|
local style = awmtk2.create_style("notifications", |
|
|
|
awmtk2.generic.iconified_widget,args.style) |
|
|
|
awmtk2.generic.popup,args.style) |
|
|
|
local templates = awmtk2.create_template_lib("notifications",awmtk2.templates,args.templates) |
|
|
|
local t = awmtk2.build_templates(templates,style) |
|
|
|
local layout = wibox.widget({ |
|
|
@ -82,7 +82,13 @@ return function(args) |
|
|
|
return update_args |
|
|
|
end |
|
|
|
-- create popup button |
|
|
|
local clip_widget = wibox.widget(t.button({ |
|
|
|
local clip_widget |
|
|
|
do |
|
|
|
local style = awmtk2.create_style("notifications", |
|
|
|
awmtk2.generic.iconified_widget,args.style) |
|
|
|
local templates = awmtk2.create_template_lib("notifications",awmtk2.templates,args.templates) |
|
|
|
local t = awmtk2.build_templates(templates,style) |
|
|
|
clip_widget = wibox.widget(t.button({ |
|
|
|
image = beautiful["notifications-area-symbolic"], |
|
|
|
resize = true, |
|
|
|
widget = wibox.widget.imagebox, |
|
|
@ -97,5 +103,6 @@ return function(args) |
|
|
|
end |
|
|
|
end |
|
|
|
end) |
|
|
|
end |
|
|
|
return clip_widget |
|
|
|
end |