From 5113a45cbd8e5ada7e0757968becd221eac9fb67 Mon Sep 17 00:00:00 2001 From: askiiart Date: Fri, 20 Oct 2023 12:04:34 -0500 Subject: [PATCH] Add ProtonUp and YT music for arch --- dotfiles | 2 +- install-stuff/install-steam.bash | 15 +++++++++++---- install-stuff/install-yt-music.bash | 2 ++ 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/dotfiles b/dotfiles index 830c381..ce31d5a 160000 --- a/dotfiles +++ b/dotfiles @@ -1 +1 @@ -Subproject commit 830c381914afbed568173b7736df1b516890053c +Subproject commit ce31d5ab08a2e292f0316cec8d8561565a50a310 diff --git a/install-stuff/install-steam.bash b/install-stuff/install-steam.bash index 90b4231..3634eaf 100755 --- a/install-stuff/install-steam.bash +++ b/install-stuff/install-steam.bash @@ -1,5 +1,6 @@ #!/usr/bin/env bash -set -e +EDITOR=nano + if [ $(whoami) == "root" ]; then echo "Run as a normal user, not root" exit 1 @@ -12,10 +13,16 @@ if command_exists "apt-get"; then sudo dpkg -i steam.deb elif command_exists "yum"; then sudo dnf install steam -y -elif command_exists "pacman"; then - echo "[multilib]\nInclude = /etc/pacman.d/mirrorlist" +elif command_exists "yay"; then + printf '[multilib]\nInclude = /etc/pacman.d/mirrorlist\n' read -p "Enable the multilib repo in /etc/pacman.conf - look above" - $EDITOR /etc/pacman.conf + sudo $EDITOR /etc/pacman.conf + yay -S steam --noconfirm --needed + yay -S appimagelauncher --noconfirm --needed + mkdir $HOME/Applications + curl $(curl -s https://api.github.com/repos/DavidoTek/ProtonUp-Qt/releases/latest | grep "browser_download_url.*ProtonUp-Qt-.*-x86_64.AppImage" | cut -d : -f 2,3 | tr -d \") -LO + mv ProtonUp*.AppImage $HOME/Applications/ + yay -S dosbox inotify-tools timidity scummvm xdotool xwinfo yad --noconfirm --needed else echo "IDK" fi diff --git a/install-stuff/install-yt-music.bash b/install-stuff/install-yt-music.bash index ac0f824..662c3fd 100755 --- a/install-stuff/install-yt-music.bash +++ b/install-stuff/install-yt-music.bash @@ -14,6 +14,8 @@ if command_exists "apt-get"; then elif command_exists "yum"; then sudo dnf config-manager --add-repo https://askiiart.net/repos/fedora/x86_64/askiiart.repo sudo dnf install youtube-music -y +elif command_exists "yay"; then + yay -S youtube-music-bin --noconfirm --needed else echo "IDK, check the repo: https://github.com/th-ch/youtube-music" fi