Added test widget for awmtk2

This commit is contained in:
Yessiest 2022-04-19 17:22:45 +04:00
parent 000334fb96
commit 86bbe93ef4
1 changed files with 34 additions and 0 deletions

34
widgets/dismal.lua Normal file
View File

@ -0,0 +1,34 @@
local awmtk2 = require("awmtk2")
local wibox = require("wibox")
local gears = require("gears")
local awful = require("awful")
return function(args)
local style = awmtk2.create_style("dismal",awmtk2.default,args.style)
local launchpad = awful.popup({
{
{
{
{
markup = "[b]Enter[/b] - run; [b]Ctrl+Enter[/b] - run in terminal",
widget = wibox.widget.textbox
},
layout = wibox.layout.fixed.vertical
},
widget = wibox.container.margin,
margin = style.container.inner_margin
},
bg = style.container.bg_normal,
widget = wibox.container.background
},
visible = false,
ontop = true
})
root.keys = gears.table.join(
root.keys(),
awful.key({ global.modkey }, "0", function()
launchpad.visible = not launchpad.visible
end)
)
return launchpad
end