1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-18 09:57:46 +01:00

tools: added both option to wallpaper script

This commit is contained in:
tiyn 2025-02-24 23:42:16 +01:00
parent dc5325c1d5
commit 320d84e302

View File

@ -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." ;; 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;; *) notify-send "🖼️ Error" "Not a valid image or directory." ; exit 1;;
esac ;; esac ;;
both) wallpaper desktop "$2" &&
wallpaper lock "$2";;
*) cat << EOF *) cat << EOF
wallpaper: cli script to set and reset the wallpaper of the desktop and lock wallpaper: cli script to set and reset the wallpaper of the desktop and lock
screen. screen.
@ -28,6 +30,9 @@ Allowed options:
If no path is given reset it. If no path is given reset it.
lock [PATH] Set the wallpaper of the lock screen to the specified path. lock [PATH] Set the wallpaper of the lock screen to the specified path.
If no path is given reset it. 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 all else Print this message
EOF EOF