From 38b1a10e9f108717cf400eb5091750f6c30620ce Mon Sep 17 00:00:00 2001 From: array-in-a-matrix Date: Sun, 31 Oct 2021 14:57:23 -0400 Subject: [PATCH] fixed bugs --- LDM-Wallpaper.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 LDM-Wallpaper.sh diff --git a/LDM-Wallpaper.sh b/LDM-Wallpaper.sh new file mode 100755 index 0000000..2f2a630 --- /dev/null +++ b/LDM-Wallpaper.sh @@ -0,0 +1,8 @@ +#!/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; +sleep 3; +sudo mv -f "$filename" wallpaper;