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