Last active
May 27, 2024 21:43
-
-
Save T31337/e3d8c33d5a7318e4e7a0d79d01a7d0b9 to your computer and use it in GitHub Desktop.
setup personal SteamDeck preferences after updating SteamOS
This file contains 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 | |
function installSoftware() | |
{ | |
read -p "Continue? (Y/N): " confirm | |
if [[ "$confirm" == [yY] ]]; then | |
echo -e "\e[35mInstall Predefined Additional Software Now?\e[0m" | |
echo -e "\e[35mSoftware To Install: git, base-devel, acpi, bc, ffmpeg, espeak, yt-dlp, android-tools, libimobiledevice, usbmuxd, devede, python-pip\e[0m" | |
read -p "Continue? (Y/N): " confirm | |
if [[ "$confirm" == [yY] || "$confirm" == [yY][eE][sS] ]]; then | |
echo -e "\e[35mInstalling git, acpi & base-devel\e[0m" | |
sudo pacman -Sy --needed git base-devel acpi | |
echo -e "\e[35mInstalling bc, ffmpeg, yt-dlp, and espeak\e[0m" | |
sudo pacman -Sy --needed bc ffmpeg espeak-ng yt-dlp | |
echo -e "\e[35mInstalling android-tools\e[0m" | |
sudo pacman -Sy --needed android-tools | |
echo -e "\e[35mInstalling libimobiledevice and usbmuxd\e[0m" | |
sudo pacman -Sy --needed libimobiledevice usbmuxd | |
echo -e "\e[35mInstalling devede\e[0m" | |
sudo pacman -Sy --needed devede | |
echo -e "\e[35mDone Installing Software\e[0m" | |
else | |
echo -e "\e[35mNo pacman Software Will Be Installed\e[0m" | |
fi | |
fi | |
} | |
function setupPacman() | |
{ | |
read -p "Continue? (Y/N): " confirm | |
if [[ "$confirm" == [yY] ]]; then | |
echo -e "\e[31mDisabling SteamOS ReadOnly Mode...\e[0m" | |
sudo steamos-readonly disable | |
echo -e "\e[35mSetting Up pacman...\e[0m" | |
sudo pacman-key --init | |
sudo pacman -S --noconfirm archlinux-keyring | |
sudo pacman-key --populate archlinux | |
sudo pacman-key --populate holo | |
echo -e "\e[35mpacman is now ready for use\e[0m" | |
installSoftware | |
else | |
echo -e "\e[35mAborting Pacman Setup\e[0m" | |
fi | |
} | |
function setupSSHD() | |
{ | |
read -p "Continue? (Y/N): " confirm | |
if [[ "$confirm" == [yY] ]]; then | |
read -p "Start sshd? (Y/N): " confirm | |
if [[ "$confirm" == [yY] ]]; then | |
echo -e "\e[35mStarting sshd...\e[0m" | |
sudo systemctl start sshd | |
else | |
echo -e "\e[35msshd was not started per user request\e[0m" | |
fi | |
read -p "Enable sshd? (Y/N): " confirm | |
if [[ "$confirm" == [yY] ]]; then | |
echo -e "\e[35mEnabling sshd...\e[0m" | |
sudo systemctl enable sshd | |
fi | |
fi | |
} | |
function setupJapanese() | |
{ | |
read -p "Setup Japanese Input? (Y/N): " confirm | |
if [[ "$confirm" == [yY] ]]; then | |
echo -e "\e[35mSetting Up Japanese Input...\e[0m" | |
echo "installing ibus-autostart" | |
paru -Sy --needed ibus-autostart | |
echo -e "\e[35mSetting Up ibus environment...\e[0m" | |
echo "GTK_IM_MODULE=ibus" | sudo tee -a /etc/environment | |
echo "QT_IM_MODULE=ibus" | sudo tee -a /etc/environment | |
echo "XMODIFIERS=@im=ibus" | sudo tee -a /etc/environment | |
echo -e "\e[35mStarting ibus-daemon for Japanese input...\e[0m" | |
ibus-daemon -rxRd | |
else | |
echo -e "\e[35mSkipping Japanese Input Setup...\e[0m" | |
fi | |
} | |
echo -e "\e[35mAfter-Update Helper Script:\e[0m\n" | |
setupPacman | |
setupJapanese | |
setupSSHD | |
#Script Finished Running... | |
echo -e "\e[35mDone!\e[0m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment