#!/bin/bash
STEAMDIR=~/.local/share/Steam/steamapps
+STEAMDIRS=("/home/mokou/.local/share/Steam/steamapps" "/mnt/steam-library/steamapps" "/ssd/steam-library/steamapps")
cd $STEAMDIR
DMENU_CMD="dmenu -i -fn 'Terminus (TTF):size=12' -nb '#1c1c1c' -sb '#b35050' -nf '#b79e91' -sf '#1c1c1c'"
-MANIFESTS=($(find . -maxdepth 1 -name "*.acf"))
+MANIFESTS=()
+for i in "${STEAMDIRS[@]}"
+do
+ MANIFESTS+=($(find $i -maxdepth 1 -name "*.acf"))
+done
+
COUNT=${#MANIFESTS[@]}
APPIDS=($(echo ${MANIFESTS[@]} | grep -Eo "[0-9]+"))
APPNAMES=()