Configuring

This commit is contained in:
2026-05-13 22:01:05 +01:00
parent 2baffa81af
commit 6507227497
6 changed files with 29 additions and 15 deletions
@@ -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