mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
Default config: Allow beautiful.wallpaper to be a wallpaper
This e.g. allows themes to specify different wallpapers for different screens. Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
a1e340d118
commit
a55baf9e3c
1 changed files with 6 additions and 1 deletions
|
@ -168,7 +168,12 @@ mytasklist.buttons = awful.util.table.join(
|
|||
awful.screen.connect_for_each_screen(function(s)
|
||||
-- Wallpaper
|
||||
if beautiful.wallpaper then
|
||||
gears.wallpaper.maximized(beautiful.wallpaper, s, true)
|
||||
local wallpaper = beautiful.wallpaper
|
||||
-- If wallpaper is a function, call it with the screen
|
||||
if type(wallpaper) == "function" then
|
||||
wallpaper = wallpaper(s)
|
||||
end
|
||||
gears.wallpaper.maximized(wallpaper, s, true)
|
||||
end
|
||||
|
||||
-- Each screen has its own tag table.
|
||||
|
|
Loading…
Reference in a new issue