mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Add gaming helper
This commit is contained in:
@@ -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
25
bin/omarchy-setup-gaming
Normal 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."
|
||||
Reference in New Issue
Block a user