From dc5325c1d5f94c19de43131b442e182d54df71aa Mon Sep 17 00:00:00 2001 From: tiyn Date: Mon, 24 Feb 2025 23:37:59 +0100 Subject: [PATCH] tools: made desktop wallpaper match with lock --- .local/bin/tools/wallpaper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/tools/wallpaper b/.local/bin/tools/wallpaper index 0c9357b..6cde175 100755 --- a/.local/bin/tools/wallpaper +++ b/.local/bin/tools/wallpaper @@ -12,7 +12,7 @@ case "$1" in inode/directory ) ln -f "$(find "$trueloc" -iregex '.*.\(jpg\|jpeg\|png\|gif\)' -type f | shuf -n 1)" "$wall_desk" && notify-send -i "$wall_desk" "Random desktop wallpaper chosen." ;; *) notify-send "🖼️ Error" "Not a valid image or directory." ; exit 1;; esac - xwallpaper --zoom "$wall_desk" ;; + xwallpaper --stretch "$wall_desk" ;; lock) trueloc="$(readlink -f "$2")" && case "$(file --mime-type -b "$trueloc")" in image/* ) ln -f "$(readlink -f "$2")" "$wall_lock" && notify-send -i "$wall_lock" "Lock screen wallpaper has been changed." ;;