From d9740757cdf31cb3b61e26097ee0e6c0a1a1072a Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Fri, 25 Nov 2016 15:08:58 +0100 Subject: [PATCH] Fix the single screen case --- awesome/rc.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/awesome/rc.lua b/awesome/rc.lua index 9be11ff..653d789 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -77,8 +77,10 @@ function change_wallpaper(path, extension) if screen.count() == 2 and file_exists(path..'-16-9.'..extension) and file_exists(path..'-4-3.'..extension) then gears.wallpaper.maximized(path .. '-16-9.' .. extension, 1, true) gears.wallpaper.maximized(path .. '-4-3.' .. extension, 2, true) - elseif file_exists(path..'.'..extension) then - gears.wallpaper.maximized(path .. '.' .. extension, 1, true) + elseif file_exists(path..'-16-9.'..extension) then + for s = 1, screen.count() do + gears.wallpaper.maximized(path .. '-16-9.' .. extension, s, true) + end end end end