From 86bbe93ef48e841ccb11409959d65923e312ca71 Mon Sep 17 00:00:00 2001 From: Yessiest Date: Tue, 19 Apr 2022 17:22:45 +0400 Subject: [PATCH] Added test widget for awmtk2 --- widgets/dismal.lua | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 widgets/dismal.lua diff --git a/widgets/dismal.lua b/widgets/dismal.lua new file mode 100644 index 0000000..f785acb --- /dev/null +++ b/widgets/dismal.lua @@ -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