From dd46262fdfaabebb6fd2213a9baec91dd4244086 Mon Sep 17 00:00:00 2001 From: JaKooLit Date: Thu, 13 Feb 2025 10:02:50 +0900 Subject: added -L on find command on some scripts to be more https://github.com/JaKooLit/Hyprland-Dots/issues/553 --- config/hypr/scripts/DarkLight.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config/hypr/scripts/DarkLight.sh') diff --git a/config/hypr/scripts/DarkLight.sh b/config/hypr/scripts/DarkLight.sh index 783fa31a..662e1954 100755 --- a/config/hypr/scripts/DarkLight.sh +++ b/config/hypr/scripts/DarkLight.sh @@ -68,7 +68,7 @@ set_waybar_style() { waybar_style_link="$HOME/.config/waybar/style.css" style_prefix="\\[${theme}\\].*\\.css$" - style_file=$(find "$waybar_styles" -maxdepth 1 -type f -regex ".*$style_prefix" | shuf -n 1) + style_file=$(find -L "$waybar_styles" -maxdepth 1 -type f -regex ".*$style_prefix" | shuf -n 1) if [ -n "$style_file" ]; then ln -sf "$style_file" "$waybar_style_link" @@ -117,9 +117,9 @@ fi # Set Dynamic Wallpaper for Dark or Light Mode if [ "$next_mode" = "Dark" ]; then - next_wallpaper="$(find "${dark_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -print0 | shuf -n1 -z | xargs -0)" + next_wallpaper="$(find -L "${dark_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -print0 | shuf -n1 -z | xargs -0)" else - next_wallpaper="$(find "${light_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -print0 | shuf -n1 -z | xargs -0)" + next_wallpaper="$(find -L "${light_wallpapers}" -type f \( -iname "*.jpg" -o -iname "*.png" \) -print0 | shuf -n1 -z | xargs -0)" fi # Update wallpaper using swww command -- cgit v1.2.3