Compare commits

...
1 Commits
Author SHA1 Message Date
wyj fa55dfa704 feat: scale wallpaper 2025-02-12 12:28:18 -05:00
Executable → Regular
+5 -4
View File
@@ -20,13 +20,14 @@ prepare() {
if [ -d $THEME_DIR ]; then
rm -rf $THEME_DIR
fi
mkdir $THEME_DIR
mkdir "$THEME_DIR/images"
# Copy wallpaper so it can be used in theme
# Copy wallpaper so it can be used in theme
background_image="images/theme_ntp_background_norepeat.png"
cp "$wallpaper" "$THEME_DIR/$background_image"
#cp "$wallpaper" "$THEME_DIR/$background_image"
ffmpeg -i "$wallpaper" -vf "scale='if(gt(a,1920/1080),-1,1920)':'if(gt(a,1920/1080),1080,-1)',gblur=sigma=20" "$THEME_DIR/$background_image"
}