For Linux people who want to play games on Steam💩 but can't because it's completely inaccessible, this script might help. I named it spos.sh. If there's enough interest in this I could put it somewhere more permanent.
#!/usr/bin/env bash
# Steam username
userName=""
# Steam password
password=""
if [[ ${#userName} -lt 2 ]] || [[ "${#password}" -lt 2 ]]; then
echo "Please edit $0 and set userName and password."
exit 0
fi
export DIALOGOPTS='--no-lines --visit-items'
startPosition="$(grep -n '^exit 0$' "${0}")"
startPosition="${startPosition%%:*}"
((startPosition++))
mapfile -t data < <(tail -n +${startPosition} "$0" | grep -v "^#" | grep -v "^$")
if [[ "${#data[@]}" -lt 1 ]]; then
echo "No games added yet."
fi
declare -a menuList
for i in "${data[@]}" ; do
menuList+=(
"${i#*|}"
"${i%|*}"
)
done
game="$(dialog --backtitle "Steaming Pile of Shit Launcher" \
--clear \
--ok-label "Launch" \
--no-tags \
--menu "Please select a game to launch" 0 0 0 "${menuList[@]}" --stdout)"
[[ $? -ne 0 ]] && exit 0
steam -applaunch "${game}" -silent -login "${userName}" "${password}" -rememberpassword "$@"
exit 0
# Examples of how to add a game.
<a class="hashtag" data-tag="conjury" href="https://social.wolfe.casa/tag/conjury">#Conjury</a>|2684520
<a class="hashtag" data-tag="mortal" href="https://social.wolfe.casa/tag/mortal">#Mortal</a> Kombat 1|1971870
Sarah Russell
in reply to Billy • • •Billy
in reply to Sarah Russell • • •