added script

This commit is contained in:
array-in-a-matrix 2021-10-31 14:07:56 -04:00
parent 7fe48cf91b
commit 25714236e2

6
LDM-Wallpaper Executable file
View file

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