Update theme engine

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2025-05-20 09:54:36 +01:00
parent ab1c9a4a78
commit 8346e89b9f
3 changed files with 17 additions and 18 deletions

View File

@@ -20,11 +20,7 @@ let
swww
];
text = ''
if [[ -L "${hmConfig.theme.configDir}"/wallpaper ]]; then
exec swww img "${hmConfig.theme.configDir}"/wallpaper
elif [[ -f "${hmConfig.theme.configDir}"/color ]]; then
exec swww clear "$(<"${hmConfig.theme.configDir}"/color)"
fi
exec swww img "${hmConfig.theme.configDir}"/wallpaper
'';
}
);