configs/install-stuff/install-steam.bash

25 lines
738 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2023-10-20 12:04:34 -05:00
EDITOR=nano
if [ $(whoami) == "root" ]; then
echo "Run as a normal user, not root"
exit 1
fi
command_exists() { type "$1" &>/dev/null; }
if command_exists "apt-get"; then
curl -LO https://cdn.cloudflare.steamstatic.com/client/installer/steam.deb
sudo dpkg -i steam.deb
elif command_exists "yum"; then
sudo dnf install steam -y
2023-10-20 12:04:34 -05:00
elif command_exists "yay"; then
2023-11-20 12:28:28 -06:00
#printf '[multilib]\nInclude = /etc/pacman.d/mirrorlist\n'
#read -p "Enable the multilib repo in /etc/pacman.conf - look above"
2023-10-20 12:04:34 -05:00
sudo $EDITOR /etc/pacman.conf
yay -S steam --noconfirm --needed
2023-10-20 12:07:04 -05:00
yay -S protonup-qt-bin dosbox inotify-tools timidity scummvm xdotool xwinfo yad --noconfirm --needed
else
echo "IDK"
fi