Skip to content

Instantly share code, notes, and snippets.

@ryanrudolfoba
Last active February 23, 2025 13:35
Show Gist options
  • Save ryanrudolfoba/d4e8fd18ab16abcc6386b789907afde8 to your computer and use it in GitHub Desktop.
Save ryanrudolfoba/d4e8fd18ab16abcc6386b789907afde8 to your computer and use it in GitHub Desktop.
hotd4.sh - Sample template for Lindbergh on SteamOS. Use this in conjunction with my SteamOS Lindbergh Install / Upgrade Guide
#!/bin/bash
distrobox stop -Y lindbergh
sleep 5
xhost +si:localuser:$USER
# ask if launch test menu or launch the game
LINDBERGH=$(kdialog --radiolist "Select Lindbergh Operation:" \
1 "LAUNCH GAME" on \
2 "TEST MENU" off)
if [ $? -eq 1 ]
then
kdialog --sorry "User pressed CANCEL.\nGoing back to Game Mode."
exit
elif [ $LINDBERGH -eq 1 ]
then
distrobox enter lindbergh -e \
"cd /home/deck/SEGA-Lindbergh/games/hotd4/disk0/elf; \
./lindbergh"
elif [ $LINDBERGH -eq 2 ]
then
distrobox enter lindbergh -e \
"cd /home/deck/SEGA-Lindbergh/games/hotd4/disk0/elf; \
./lindbergh -t"
fi
distrobox stop -Y lindbergh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment