diff options
| author | JaKooLit <ejhay.games@gmail.com> | 2025-02-13 10:02:50 +0900 |
|---|---|---|
| committer | JaKooLit <ejhay.games@gmail.com> | 2025-02-13 10:02:50 +0900 |
| commit | dd46262fdfaabebb6fd2213a9baec91dd4244086 (patch) | |
| tree | fdeaac26b690363bebe9ce2854d3a4c13e2ab2cb /config/hypr/scripts/DarkLight.sh | |
| parent | f46aee203c141f07692288f6053c35335c6c7faf (diff) | |
added -L on find command on some scripts to be more
https://github.com/JaKooLit/Hyprland-Dots/issues/553
Diffstat (limited to 'config/hypr/scripts/DarkLight.sh')
| -rwxr-xr-x | config/hypr/scripts/DarkLight.sh | 6 |
1 files changed, 3 insertions, 3 deletions
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 |
