From 1a57257fbfbfc5606c012c1bea49593b6b3a0fdb Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 4 May 2026 10:31:06 +0200 Subject: [PATCH] Add heroic and just go with lutris --- bin/omarchy-install-gaming-heroic-launcher | 11 +++++++++++ ...-battlenet => omarchy-install-gaming-lutris} | 5 ++--- bin/omarchy-menu | 8 ++++---- bin/omarchy-remove-gaming-heroic-launcher | 17 +++++++++++++++++ ...g-battlenet => omarchy-remove-gaming-lutris} | 6 ++---- 5 files changed, 36 insertions(+), 11 deletions(-) create mode 100755 bin/omarchy-install-gaming-heroic-launcher rename bin/{omarchy-install-gaming-battlenet => omarchy-install-gaming-lutris} (70%) create mode 100755 bin/omarchy-remove-gaming-heroic-launcher rename bin/{omarchy-remove-gaming-battlenet => omarchy-remove-gaming-lutris} (60%) diff --git a/bin/omarchy-install-gaming-heroic-launcher b/bin/omarchy-install-gaming-heroic-launcher new file mode 100755 index 00000000..34d2fbb6 --- /dev/null +++ b/bin/omarchy-install-gaming-heroic-launcher @@ -0,0 +1,11 @@ +#!/bin/bash + +# omarchy:summary=Install Heroic Games Launcher (Epic, GOG, Amazon Prime Gaming) with graphics drivers. +# omarchy:requires-sudo=true + +set -e + +omarchy-pkg-add heroic-games-launcher-bin +omarchy-install-gaming-gpu-lib32 + +setsid gtk-launch heroic >/dev/null 2>&1 & diff --git a/bin/omarchy-install-gaming-battlenet b/bin/omarchy-install-gaming-lutris similarity index 70% rename from bin/omarchy-install-gaming-battlenet rename to bin/omarchy-install-gaming-lutris index 7cc30f80..45bb8695 100755 --- a/bin/omarchy-install-gaming-battlenet +++ b/bin/omarchy-install-gaming-lutris @@ -1,6 +1,6 @@ #!/bin/bash -# omarchy:summary=Install Battle.net via Lutris (Wine + DXVK handled by the Lutris install recipe) +# omarchy:summary=Install Lutris with Wine + DXVK for running Windows games (Battle.net, EA, Ubisoft Connect, etc.) # omarchy:requires-sudo=true set -e @@ -15,8 +15,7 @@ sudo sed -i '/env python3/ c\#!/bin/python3' /usr/bin/lutris cat <<'EOF' Lutris will open and auto-fetch its DXVK and VKD3D runtimes in the background -(watch the bottom status bar). Once that finishes, click the +, search for "Battle.net" in -the games list and click Install. +(watch the bottom status bar). Once that finishes, click the + to add or install games. EOF diff --git a/bin/omarchy-menu b/bin/omarchy-menu index 205b290e..9ee4d860 100755 --- a/bin/omarchy-menu +++ b/bin/omarchy-menu @@ -386,11 +386,11 @@ show_install_ai_menu() { } show_install_gaming_menu() { - case $(menu "Install" " Steam\n RetroArch\n󰍳 Minecraft\n Battle.net\n󰢹 NVIDIA GeForce NOW\n Xbox Cloud Gaming\n󰖺 Xbox Controller (󰂯)") in + case $(menu "Install" " Steam\n RetroArch\n󰍳 Minecraft\n Lutris (Battle.net, etc.)\n󰢹 NVIDIA GeForce NOW\n Xbox Cloud Gaming\n󰖺 Xbox Controller (󰂯)") in *Steam*) present_terminal omarchy-install-gaming-steam ;; *RetroArch*) present_terminal omarchy-install-gaming-retroarch ;; *Minecraft*) install_and_launch "Minecraft" "minecraft-launcher" "minecraft-launcher" ;; - *Battle.net*) present_terminal omarchy-install-gaming-battlenet ;; + *Lutris*) present_terminal omarchy-install-gaming-lutris ;; *GeForce*) present_terminal omarchy-install-gaming-geforce-now ;; *"Xbox Cloud"*) present_terminal omarchy-install-gaming-xbox-cloud ;; *Xbox*) present_terminal omarchy-install-gaming-xbox-controllers ;; @@ -483,11 +483,11 @@ show_remove_menu() { } show_remove_gaming_menu() { - case $(menu "Remove" " Steam\n RetroArch\n󰍳 Minecraft\n Battle.net\n󰢹 NVIDIA GeForce NOW\n Xbox Cloud Gaming\n󰖺 Xbox Controller") in + case $(menu "Remove" " Steam\n RetroArch\n󰍳 Minecraft\n Lutris\n󰢹 NVIDIA GeForce NOW\n Xbox Cloud Gaming\n󰖺 Xbox Controller") in *Steam*) present_terminal omarchy-remove-gaming-steam ;; *RetroArch*) present_terminal omarchy-remove-gaming-retroarch ;; *Minecraft*) present_terminal omarchy-remove-gaming-minecraft ;; - *Battle.net*) present_terminal omarchy-remove-gaming-battlenet ;; + *Lutris*) present_terminal omarchy-remove-gaming-lutris ;; *GeForce*) present_terminal omarchy-remove-gaming-geforce-now ;; *"Xbox Cloud"*) present_terminal omarchy-remove-gaming-xbox-cloud ;; *Xbox*) present_terminal omarchy-remove-gaming-xbox-controllers ;; diff --git a/bin/omarchy-remove-gaming-heroic-launcher b/bin/omarchy-remove-gaming-heroic-launcher new file mode 100755 index 00000000..7247c247 --- /dev/null +++ b/bin/omarchy-remove-gaming-heroic-launcher @@ -0,0 +1,17 @@ +#!/bin/bash + +# omarchy:summary=Remove Heroic Games Launcher and its game libraries, configs, and caches. +# omarchy:requires-sudo=true + +set -e + +omarchy-pkg-drop heroic-games-launcher-bin + +rm -rf \ + "$HOME/.config/heroic" \ + "$HOME/.local/share/heroic" \ + "$HOME/.cache/heroic" \ + "$HOME/Games/Heroic" + +echo "" +echo "Heroic and its data have been removed." diff --git a/bin/omarchy-remove-gaming-battlenet b/bin/omarchy-remove-gaming-lutris similarity index 60% rename from bin/omarchy-remove-gaming-battlenet rename to bin/omarchy-remove-gaming-lutris index b113c0c0..18253890 100755 --- a/bin/omarchy-remove-gaming-battlenet +++ b/bin/omarchy-remove-gaming-lutris @@ -1,6 +1,6 @@ #!/bin/bash -# omarchy:summary=Remove Battle.net along with Lutris, Wine, umu-launcher, and all their configs and caches. +# omarchy:summary=Remove Lutris, Wine, umu-launcher, and all their configs and caches. # omarchy:requires-sudo=true set -e @@ -8,8 +8,6 @@ set -e omarchy-pkg-drop lutris wine-staging wine-mono wine-gecko winetricks python-protobuf umu-launcher rm -rf \ - "$HOME/Games/battlenet" \ - "$HOME/Games/battle-net" \ "$HOME/.config/lutris" \ "$HOME/.local/share/lutris" \ "$HOME/.cache/lutris" \ @@ -20,4 +18,4 @@ rm -rf \ "$HOME/.cache/winetricks" echo "" -echo "Battle.net, Lutris, Wine, umu-launcher, and their configs have been removed." +echo "Lutris, Wine, umu-launcher, and their configs have been removed."