From 44a1c20d6196078232bd266529327c564af578c2 Mon Sep 17 00:00:00 2001 From: Yessiest Date: Wed, 20 Apr 2022 00:20:21 +0400 Subject: [PATCH] Made dismal temporarily usable --- core/layout.lua | 1 + widgets/dismal.lua | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/core/layout.lua b/core/layout.lua index 8dbe5b0..b9485a3 100644 --- a/core/layout.lua +++ b/core/layout.lua @@ -54,6 +54,7 @@ awful.screen.connect_for_each_screen(function(s) }) -- Add screen lock require("widgets.lock")({screen = s, obscure = true}) + require("widgets.dismal")({}) require("widgets.unitybar")(s,{ top_widgets = { require("widgets.polytasklist")({ diff --git a/widgets/dismal.lua b/widgets/dismal.lua index f785acb..3d69b60 100644 --- a/widgets/dismal.lua +++ b/widgets/dismal.lua @@ -6,7 +6,7 @@ local awful = require("awful") return function(args) local style = awmtk2.create_style("dismal",awmtk2.default,args.style) local launchpad = awful.popup({ - { + widget = { { { { @@ -24,11 +24,11 @@ return function(args) visible = false, ontop = true }) - root.keys = gears.table.join( + root.keys(gears.table.join( root.keys(), awful.key({ global.modkey }, "0", function() launchpad.visible = not launchpad.visible end) - ) + )) return launchpad end