diff --git a/lib/wibox/widget/template.lua b/lib/wibox/widget/template.lua index c6545405d..02cc5eea3 100644 --- a/lib/wibox/widget/template.lua +++ b/lib/wibox/widget/template.lua @@ -117,6 +117,10 @@ function template.new(args) ret:set_update_callback(args.update_callback) ret:set_update_now(args.update_now) + if args.buttons then + ret:set_buttons(args.buttons) + end + return ret end