changed ~/ with |path|

This commit is contained in:
array-in-a-matrix 2021-10-31 15:02:46 -04:00
parent f1745268ee
commit 9d9f3a7c4f
1 changed files with 3 additions and 4 deletions

View File

@ -1,8 +1,7 @@
#!/bin/sh
image=$(find -L ~/Pictures/Wallpapers/ -type f | shuf -n1);
sudo cp "$image" /usr/share/wallpapers/lightdm/;
image=$(find -L /home/linux/Pictures/Wallpapers/ -type f | shuf -n1);
cp "$image" /usr/share/wallpapers/lightdm/;
cd /usr/share/wallpapers/lightdm;
filename=${image##*/};
echo $filename;
sleep 3;
sudo mv -f "$filename" wallpaper;
mv -f "$filename" wallpaper;