index — dotfiles @ 6891c0b3055fd0cfbc7f99d47b6d74172ab27994

my dotfiles

bin/steam-launcher (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
#!/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