Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -849,12 +849,25 @@ while true; do
printf "Goverlay: MangoHud configuration tool\n"
printf "Lutris: Alternative game launcher with integration for platforms like EA App, Ubisoft Connect, Humble Bundle, etc.\n"
printf "Heroic Games Launcher: Alternative game launcher with very good integration for Epic Games Launcher, GOG Galaxy and Amazon Prime Gaming\n"
printf "Gear Lever: Utility for handling .appimages like Heroic Games Launcher\n\n"
printf "Gear Lever: Utility for handling .appimages like Heroic Games Launcher\n"
printf "Gamemode: CPU Optimization daemon for gaming\n\n"
read -rp "Do you want to install all the recommended packages? (y/n) > " -n 1 -r
printf "\n"
if [ -x "$(command -v flatpak)" ];then
if [[ $REPLY =~ ^[Yy]$ ]]; then
packageToInstall steam gamescope mangohud goverlay lutris curl
packageToInstall steam gamescope mangohud goverlay lutris curl gamemode
if grep -q gamemode /etc/group; then
sudo usermod -aG gamemode "$(whoami)!"
else
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should add a 'gamemoded -t' to check if it has installed correctly.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would need to reboot before configs are applied.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can maybe write config first and try that way.

printf "%bERROR: Gamemode was not properly installed.\n\n%b" "$red" "$white"
fi
if [ ! -e /etc/gamemode.ini ]; then
printf "[general]\nrenice=10" | sudo tee -a /etc/gamemode.ini > /dev/null
elif grep -q "renice=" /etc/gamemode.ini; then
sudo sed -i '/^renice=/c\renice=10' /etc/gamemode.ini
else
printf "\n[general]\nrenice=10" | sudo tee -a /etc/gamemode.ini > /dev/null
fi
mkdir -p "$HOME/AppImages"
curl -s https://api.github.com/repos/Heroic-Games-Launcher/HeroicGamesLauncher/releases/latest | grep browser_download_url | grep '.AppImage' | cut -d '"' -f 4 | xargs curl -L -o "$HOME/AppImages/heroic_games_launcher.appimage"
sudo flatpak install it.mijorus.gearlever -y
Expand Down Expand Up @@ -884,6 +897,8 @@ while true; do
if [[ $REPLY =~ ^[Yy]$ ]]; then # Reply is default variable name
sudo dnf install "https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm" "https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm"
sudo dnf update @core
sudo dnf swap ffmpeg-free ffmpeg --allowerasing
sudo dnf update @multimedia --setopt="install_weak_deps=False" --exclude=PackageKit-gstreamer-plugin
fi
;;
"nvi")
Expand Down