Add gaming helper

This commit is contained in:
Ryan Hughes
2025-09-21 23:01:41 -04:00
parent be6614b2b1
commit 0a2c106a41
3 changed files with 171 additions and 1 deletions

View File

@@ -299,10 +299,12 @@ show_install_ai_menu() {
}
show_install_gaming_menu() {
case $(menu "Install" " Steam\n RetroArch [AUR]\n󰍳 Minecraft\n Lutris") in
case $(menu "Install" "Omarchy Gaming Helper\n Steam\n RetroArch [AUR]\n󰍳 Minecraft\n Heroic Launcher\n Lutris") in
*Omarchy Gaming Helper*) present_terminal omarchy-setup-gaming ;;
*Steam*) present_terminal omarchy-install-steam ;;
*RetroArch*) aur_install_and_launch "RetroArch" "retroarch retroarch-assets libretro libretro-fbneo" "com.libretro.RetroArch.desktop" ;;
*Minecraft*) aur_install_and_launch "Minecraft [AUR]" "minecraft-launcher" "minecraft-launcher" ;;
*Heroic Launcher*) aur_install_and_launch "Heroic Launcher" "heroic-games-launcher-bin" "heroic" ;;
*Lutris*) aur_install_and_launch "Lutris" "lutris" "lutris" ;;
*) show_install_menu ;;
esac

25
bin/omarchy-setup-gaming Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/bash
mkdir -p ~/.config/systemd/user/
cat > ~/.config/systemd/user/omarchy-gaming-helper.service << EOF
[Unit]
Description=Omarchy Gaming Helper
After=graphical-session.target
[Service]
Type=simple
ExecStart=$OMARCHY_PATH/default/hypr/scripts/omarchy-gaming-helper.sh
Restart=always
RestartSec=5
[Install]
WantedBy=default.target
EOF
systemctl --user daemon-reload
systemctl --user enable omarchy-gaming-helper.service
systemctl --user start omarchy-gaming-helper.service
echo "Omarchy Gaming Helper service has been installed and started."