-
Star
(108)
You must be signed in to star a gist -
Fork
(4)
You must be signed in to fork a gist
-
-
Save SavageCore/263a3413532bc181c9bb215c8fe6c30d to your computer and use it in GitHub Desktop.
Install or update xone driver for Steam Deck (desktop shortcut and bash script)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Download the latest version of the script from the repository and run it | |
echo -e "\e[1mDownloading the latest version of the script...\e[0m" | |
echo "" | |
curl -sSfL "https://github.com/SavageCore/xone-steam-deck-installer/releases/latest/download/xone_install_or_update.sh" >~/xone_install_or_update.sh || { | |
echo "Failed to download xone_install_or_update.sh. Aborting..." | |
read -n 1 -s -r -p "Press any key to exit" | |
exit 1 | |
} | |
curl -sSfL "https://github.com/SavageCore/xone-steam-deck-installer/releases/latest/download/xone.desktop" >~/Desktop/xone.desktop || { | |
echo "Failed to download xone.desktop. Aborting..." | |
read -n 1 -s -r -p "Press any key to exit" | |
exit 1 | |
} | |
curl -sSfL "https://github.com/SavageCore/xone-steam-deck-installer/releases/latest/download/xone_debug.desktop" >~/Desktop/xone_debug.desktop || { | |
echo "Failed to download xone_debug.desktop. Aborting..." | |
read -n 1 -s -r -p "Press any key to exit" | |
exit 1 | |
} | |
curl -sSfL "https://github.com/SavageCore/xone-steam-deck-installer/releases/latest/download/enable-pairing.desktop" >~/Desktop/enable-pairing.desktop || { | |
echo "Failed to download enable-pairing.desktop. Aborting..." | |
read -n 1 -s -r -p "Press any key to exit" | |
exit 1 | |
} | |
curl -sSfL "https://github.com/SavageCore/xone-steam-deck-installer/releases/latest/download/disable-pairing.desktop" >~/Desktop/disable-pairing.desktop || { | |
echo "Failed to download disable-pairing.desktop. Aborting..." | |
read -n 1 -s -r -p "Press any key to exit" | |
exit 1 | |
} | |
# Run the script | |
echo -e "\e[1mRunning the script...\e[0m" | |
echo "" | |
clear | |
chmod +x ~/xone_install_or_update.sh | |
exec bash ~/xone_install_or_update.sh |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# xone install or update script for SteamOS | |
# by cdleveille | |
# updated by SavageCore | |
# | |
# https://gist.github.com/SavageCore/263a3413532bc181c9bb215c8fe6c30d | |
# Script version 0.10.1 | |
echo -e "\e[1mYou have the old script from Gist. Updating...\e[0m" | |
echo "" | |
curl -sSfL "https://github.com/SavageCore/xone-steam-deck-installer/releases/latest/download/xone_install_or_update.sh" >/tmp/xone_install_or_update.sh || { | |
echo "Failed to download the latest version of the script. Aborting..." | |
read -n 1 -s -r -p "Press any key to exit" | |
exit 1 | |
} | |
# Preserve the current working directory and arguments | |
PWD=$(pwd) | |
ARGS="$@" | |
# Replace the current script with the new version | |
mv /tmp/xone_install_or_update.sh "$0" | |
read -n 1 -s -r -p "Press any key to relaunch the script..." | |
clear | |
# Re-run the script with the same environment variables and arguments | |
cd "$PWD" || { | |
echo "Failed to change directory. Aborting..." | |
read -n 1 -s -r -p "Press any key to exit" | |
exit 1 | |
} | |
exec bash "$0" "$ARGS" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@SavageCore awesome. Good job!