From 320d84e302c44342ce6fc8d9280c929e2fc15649 Mon Sep 17 00:00:00 2001 From: tiyn Date: Mon, 24 Feb 2025 23:42:16 +0100 Subject: [PATCH] tools: added both option to wallpaper script --- .local/bin/tools/wallpaper | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.local/bin/tools/wallpaper b/.local/bin/tools/wallpaper index 6cde175..7243aaa 100755 --- a/.local/bin/tools/wallpaper +++ b/.local/bin/tools/wallpaper @@ -19,6 +19,8 @@ case "$1" in inode/directory ) ln -f "$(find "$trueloc" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)" "$wall_lock" && notify-send -i "$wall_lock" "Random lock screen wallpaper chosen." ;; *) notify-send "🖼️ Error" "Not a valid image or directory." ; exit 1;; esac ;; + both) wallpaper desktop "$2" && + wallpaper lock "$2";; *) cat << EOF wallpaper: cli script to set and reset the wallpaper of the desktop and lock screen. @@ -28,6 +30,9 @@ Allowed options: If no path is given reset it. lock [PATH] Set the wallpaper of the lock screen to the specified path. If no path is given reset it. + both [PATH] Set wallpaper for both lock screen and dektop to a + specified path. + If no path is given reset it. all else Print this message EOF