From: Matthew Owens <matthew@owens.tech>
Date: Tue, 4 Jul 2023 11:14:14 +0000 (+0100)
Subject: updated to include multiple steam libs
X-Git-Url: https://git.owens.tech/112-editable-focus.html/112-editable-focus.html/git?a=commitdiff_plain;h=394620b8ac798f6bb6e65ec5c73f99c4a77a1220;p=scripts.git

updated to include multiple steam libs
---

diff --git a/steamlaunch b/steamlaunch
index de722c3..d2d8e86 100755
--- a/steamlaunch
+++ b/steamlaunch
@@ -1,10 +1,16 @@
 #!/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=()