Skip to content
This repository has been archived by the owner on Feb 28, 2023. It is now read-only.

Commit

Permalink
fix Start Animated Wallpaper
Browse files Browse the repository at this point in the history
  • Loading branch information
Truemmerer committed Mar 4, 2022
1 parent bce9dab commit 1f1c6f6
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions awp/awp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ then
# Check if there was a previous wallpaper and if yes load this

killall animated-wallpaper
lastBild= "$Cachedir/lastpicture.txt"
lastVideo= "$Cachedir/lastvideo.txt"

if [ -f "$lastBild" ]; then
if [ -f "$lastVideo" ]; then
read lastvid < "$Cachedir/lastvideo.txt"
read lastpic < "$Cachedir/lastpicture.txt"
read lastpic < "$Cachedir/lastpicture.txt"
read lastvid < "$Cachedir/lastvideo.txt"


if [ -f "$lastpic" ]; then
if [ -f "$lastvid" ]; then
gsettings set org.gnome.desktop.background picture-uri "file://$lastpic"\
&& animated-wallpaper "$lastvid" & exit 0
else
Expand Down

0 comments on commit 1f1c6f6

Please sign in to comment.