#!/bin/bash GAME=$(cat $(find ~/.local/share/Steam/steamapps/ -maxdepth 1 -type f -name '*.acf') | grep "name" | grep -v "Steam" | grep -v "Proton" | sed 's/.$//' | cut -d'"' -f2- | cut -d'"' -f2- | cut -d'"' -f2- | dmenu) if [ $? -ne 0 ]; then exit 1 fi APPID=$(grep -rl --include="*.acf" "$GAME" ~/.local/share/Steam/steamapps | cut -d'_' -f2- | sed 's/\.acf$//') echo "'$GAME' with id '$APPID' will be executed" steam steam://launch/$APPID