From 9823d2fb9f3b935808d9e663d75e4ea8cb8886ae Mon Sep 17 00:00:00 2001 From: swmalm <148342347+swmalm@users.noreply.github.com> Date: Tue, 13 May 2025 11:14:44 +0200 Subject: [PATCH 1/2] Added gamemode to installer, added user to group and renice to default config. --- start.sh | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/start.sh b/start.sh index 797827c..fa00961 100755 --- a/start.sh +++ b/start.sh @@ -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, can be enabled by using 'gamemoderun %command%' launch option.\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 + 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 From cd3a86ad1678da2d8c41d33d33aec8b92c0d3383 Mon Sep 17 00:00:00 2001 From: swmalm <148342347+swmalm@users.noreply.github.com> Date: Thu, 12 Jun 2025 21:36:39 +0200 Subject: [PATCH 2/2] Fixed formatting and added forgotten fedora fix --- start.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/start.sh b/start.sh index fa00961..26bfa2e 100755 --- a/start.sh +++ b/start.sh @@ -850,14 +850,14 @@ while true; do 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" - printf "Gamemode: CPU Optimization daemon, can be enabled by using 'gamemoderun %command%' launch option.\n\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 gamemode if grep -q gamemode /etc/group; then - sudo usermod -aG gamemode $(whoami) + sudo usermod -aG gamemode "$(whoami)!" else printf "%bERROR: Gamemode was not properly installed.\n\n%b" "$red" "$white" fi @@ -897,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")