From 394620b8ac798f6bb6e65ec5c73f99c4a77a1220 Mon Sep 17 00:00:00 2001 From: Matthew Owens Date: Tue, 4 Jul 2023 12:14:14 +0100 Subject: [PATCH] updated to include multiple steam libs --- steamlaunch | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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=() -- 2.20.1