diff --git a/awesomerc.lua b/awesomerc.lua index 41d8fcb32..7d511e0a6 100755 --- a/awesomerc.lua +++ b/awesomerc.lua @@ -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.