changed ~/ with |path|
This commit is contained in:
parent
f1745268ee
commit
9d9f3a7c4f
|
@ -1,8 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
image=$(find -L ~/Pictures/Wallpapers/ -type f | shuf -n1);
|
image=$(find -L /home/linux/Pictures/Wallpapers/ -type f | shuf -n1);
|
||||||
sudo cp "$image" /usr/share/wallpapers/lightdm/;
|
cp "$image" /usr/share/wallpapers/lightdm/;
|
||||||
cd /usr/share/wallpapers/lightdm;
|
cd /usr/share/wallpapers/lightdm;
|
||||||
filename=${image##*/};
|
filename=${image##*/};
|
||||||
echo $filename;
|
echo $filename;
|
||||||
sleep 3;
|
mv -f "$filename" wallpaper;
|
||||||
sudo mv -f "$filename" wallpaper;
|
|
||||||
|
|
Loading…
Reference in a new issue