Skip to content

Commit 1da1bbb

Browse files
committed
fix: use still gif if no gifsetter
1 parent 0b5abe2 commit 1da1bbb

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

scripts/wallpaper.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ select_wallpaper() {
2626
set_wallpaper_with_mode() {
2727
local image_path="$1"
2828

29-
# Default xgifwallpaperMode values
29+
# Default wallpaperMode values
3030
local xWallMode="zoom" ; local fehMode="fill"; local nitrogenMode="auto"; local swayMode="fill"
3131
local hsetrootMode="-fill"; local xfceMode=5; local gnomeMode="zoom"; local pcmanfmMode="fit"
3232
local xgifwallpaperMode="FILL" awwwMode="crop"
@@ -73,7 +73,6 @@ set_wallpaper_with_mode() {
7373
# Choose setter type
7474
if [[ "$wallpaper_animated" == true && "$wallpaper" == *.gif ]]; then
7575
WALL_SETTERS=(${WALL_SETTERS_ANIMATED[@]})
76-
image_path="$image_path.gif"
7776
else
7877
WALL_SETTERS=(${WALL_SETTERS_STATIC[@]})
7978
fi
@@ -91,6 +90,8 @@ set_wallpaper_with_mode() {
9190
WALL_SETTERS=(${WALL_SETTERS_STATIC[@]})
9291
choose_available_setter
9392
verbose sorry "Wallpaper doesn’t support animation, using static instead."
93+
else
94+
image_path="$image_path.gif"
9495
fi
9596

9697
for wallSETTER in "${AVAILABLE_SETTERS[@]}"; do

walset.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ else
77
WORK_PATH="$(pwd)"
88
fi
99

10-
LOG_FILEPATH="/tmp/wlaset.log"
10+
LOG_FILEPATH="/tmp/walset.log"
1111
SCRIPT_PATH="$WORK_PATH/scripts"
1212
SCRIPT_FILES=(messages paths config startup apply)
1313
for script in "${SCRIPT_FILES[@]}"; do . "$SCRIPT_PATH/$script.sh"; done

0 commit comments

Comments
 (0)