awesome/tests/examples/wibox/nwidget/icon/simple.lua

23 lines
628 B
Lua

--DOC_GEN_IMAGE
local parent = ... --DOC_HIDE
local naughty = { --DOC_HIDE
widget = { icon = require("naughty.widget.icon")}, --DOC_HIDE
notification = require("naughty.notification")} --DOC_HIDE
local wibox = require("wibox") --DOC_HIDE
local beautiful = require("beautiful") --DOC_HIDE
local notif = naughty.notification {
title = "A notification",
message = "This notification has actions!",
icon = beautiful.awesome_icon,
}
--DOC_NEWLINE
parent:add( --DOC_HIDE
wibox.widget {
notification = notif,
widget = naughty.widget.icon,
}
) --DOC_HIDE