-cd "$PWD/xorg"
-for y in icons themes; do
- find $y -type d -mindepth 2 -maxdepth 2 | while read -r x; do
- l "$HOME/.$y/`basename "$x"`" "$PWD/$x"
- done
+find "$PWD/xorg/icons" -type d -mindepth 1 -maxdepth 2 | while read -r x; do
+ if [ -e "$x/index.theme" ]; then
+ l "$HOME/.icons/`basename "$x"`"
+ fi
+done
+find "$PWD/xorg/themes" -type d -mindepth 1 -maxdepth 1 | while read -r x; do
+ l "$HOME/.themes/`basename "$x"`"