Skip to content

Commit 591901a

Browse files
committed
refactor: remove redundant code
1 parent de63a60 commit 591901a

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

Configs/.local/lib/hyde/fastfetch.sh

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,7 @@ logo) # eats around 13 ms
4747
image_dirs+=("$HYDE_CACHE_HOME/wall.quad")
4848
image_dirs+=("$HYDE_CACHE_HOME/wall.sqre")
4949
[ -f "$HOME/.face.icon" ] && image_dirs+=("$HOME/.face.icon")
50-
[ -f "$hyde_distro_logo" ] && image_dirs+=("$hyde_distro_logo")
51-
image_dirs+=("${confDir}/fastfetch/logo")
52-
image_dirs+=("${iconDir}/Wallbash-Icon/fastfetch/")
53-
if [ -n "${HYDE_THEME}" ] && [ -d "${confDir}/hyde/themes/${HYDE_THEME}/logo" ]; then
54-
image_dirs+=("${confDir}/hyde/themes/${HYDE_THEME}/logo")
55-
fi
50+
# also .bash_logout may be matched with this find
5651
find -L "${image_dirs[@]}" -maxdepth 1 -type f \( -name "wall.quad" -o -name "wall.sqre" -o -name "*.icon" -o -name "*logo*" -o -name "*.png" \) ! -path "*/wall.set*" ! -path "*/wallpapers/*.png" 2>/dev/null
5752
) | shuf -n 1
5853
}

0 commit comments

Comments
 (0)