From a55baf9e3c4e4d4b87752ed74da15586e82b08bb Mon Sep 17 00:00:00 2001 From: Uli Schlachter Date: Thu, 28 Apr 2016 17:45:36 +0200 Subject: [PATCH] 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 --- awesomerc.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/awesomerc.lua b/awesomerc.lua index 41d8fcb3..7d511e0a 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.