mirror of
https://github.com/elenapan/dotfiles.git
synced 2025-12-26 23:34:57 +08:00
Merge 846119914e into 6071ce92b1
This commit is contained in:
commit
082c0b2218
1 changed files with 9 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue