This commit is contained in:
Wenxuan 2025-09-21 06:47:53 +02:00 committed by GitHub
commit 082c0b2218
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,18 +88,19 @@ restart_awesome:buttons(gears.table.join(
awful.button({ }, 1, awesome.restart)
))
-- Create the widget
app_drawer = wibox({visible = false, ontop = true, type = "dock"})
awful.placement.maximize(app_drawer)
app_drawer.bg = "#00000000"
-- app_drawer.bg = beautiful.app_drawer_bg or x.background or "#111111"
app_drawer.fg = beautiful.app_drawer_fg or x.foreground or "#FEFEFE"
function app_drawer_create(s)
app_drawer = wibox({visible = false, ontop = true, type = "dock", screen = s})
awful.placement.maximize(app_drawer)
app_drawer.bg = "#00000000"
-- app_drawer.bg = beautiful.app_drawer_bg or x.background or "#111111"
app_drawer.fg = beautiful.app_drawer_fg or x.foreground or "#FEFEFE"
return app_drawer
end
-- Add app drawer or mask to each screen
for s in screen do
if s == screen.primary then
s.app_drawer = app_drawer
s.app_drawer = app_drawer_create(s)
else
s.app_drawer = helpers.screen_mask(s, beautiful.lock_screen_bg or beautiful.exit_screen_bg or x.background)
end