Better install of retroarch

This commit is contained in:
David Heinemeier Hansson
2026-05-03 20:54:13 +02:00
parent 301ea3ecc6
commit 9c944e89f6
2 changed files with 28 additions and 1 deletions
+27
View File
@@ -0,0 +1,27 @@
#!/bin/bash
# omarchy:summary=Install RetroArch with the full libretro core set plus FBNeo and a ~/Games ROM directory.
set -e
omarchy-pkg-aur-add retroarch retroarch-assets libretro libretro-fbneo
# Set up ~/Games as the default ROM directory
mkdir -p "$HOME/Games"
CFG="$HOME/.config/retroarch/retroarch.cfg"
mkdir -p "$(dirname "$CFG")"
touch "$CFG"
set_cfg() {
local key=$1 value=$2
if grep -q "^$key = " "$CFG"; then
sed -i "s|^$key = .*|$key = \"$value\"|" "$CFG"
else
echo "$key = \"$value\"" >>"$CFG"
fi
}
set_cfg rgui_browser_directory "$HOME/Games"
setsid gtk-launch com.libretro.RetroArch.desktop >/dev/null 2>&1 &
+1 -1
View File
@@ -389,7 +389,7 @@ show_install_gaming_menu() {
case $(menu "Install" " Steam\n󰢹 NVIDIA GeForce NOW\n RetroArch [AUR]\n󰍳 Minecraft\n󰖺 Xbox Controller [AUR]") in
*Steam*) present_terminal omarchy-install-steam ;;
*GeForce*) present_terminal omarchy-install-geforce-now ;;
*RetroArch*) aur_install_and_launch "RetroArch" "retroarch retroarch-assets libretro libretro-fbneo" "com.libretro.RetroArch.desktop" ;;
*RetroArch*) present_terminal omarchy-install-retroarch ;;
*Minecraft*) install_and_launch "Minecraft" "minecraft-launcher" "minecraft-launcher" ;;
*Xbox*) present_terminal omarchy-install-xbox-controllers ;;
*) show_install_menu ;;