Configuring
This commit is contained in:
@@ -28,7 +28,7 @@ function GetEntries()
|
||||
|
||||
-- Directories to search
|
||||
local dirs = {
|
||||
home .. "/Tower/Library/Pictures/Wallpapers/3840x2160",
|
||||
home .. "/Tower/Library/Pictures/Wallpapers/7680x2160",
|
||||
}
|
||||
|
||||
-- Track added files to avoid duplicates
|
||||
@@ -36,8 +36,9 @@ function GetEntries()
|
||||
|
||||
for _, wallpaper_dir in ipairs(dirs) do
|
||||
local handle = io.popen(
|
||||
"find " .. ShellEscape(wallpaper_dir)
|
||||
.. " -maxdepth 1 -type f \\( -name '*.jpg' -o -name '*.jpeg' -o -name '*.png' -o -name '*.gif' -o -name '*.bmp' -o -name '*.webp' \\) 2>/dev/null | sort"
|
||||
"find "
|
||||
.. ShellEscape(wallpaper_dir)
|
||||
.. " -maxdepth 1 -type f \\( -name '*.jpg' -o -name '*.jpeg' -o -name '*.png' -o -name '*.gif' -o -name '*.bmp' -o -name '*.webp' \\) 2>/dev/null | sort"
|
||||
)
|
||||
if handle then
|
||||
for background in handle:lines() do
|
||||
|
||||
Reference in New Issue
Block a user