Add moonlight game streaming client

This commit is contained in:
David Heinemeier Hansson
2026-05-04 11:36:19 +02:00
parent d6fdc89fb9
commit d10ca57100
3 changed files with 29 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
# omarchy:summary=Install Moonlight (NVIDIA GameStream / Sunshine client) for streaming games to this PC.
# omarchy:requires-sudo=true
set -e
omarchy-pkg-add moonlight-qt
setsid gtk-launch com.moonlight_stream.Moonlight.desktop >/dev/null 2>&1 &
+4 -2
View File
@@ -386,7 +386,7 @@ show_install_ai_menu() {
} }
show_install_gaming_menu() { show_install_gaming_menu() {
case $(menu "Install" " Steam\n RetroArch\n󰍳 Minecraft\n󰢹 NVIDIA GeForce NOW\n Xbox Cloud Gaming\n󰖺 Xbox Controller (󰂯)\n Lutris (Battle.net)\n󱓟 Heroic (Epic Games)") in case $(menu "Install" " Steam\n RetroArch\n󰍳 Minecraft\n󰢹 NVIDIA GeForce NOW\n Xbox Cloud Gaming\n󰖺 Xbox Controller (󰂯)\n󰍹 Moonlight (GameStream)\n Lutris (Battle.net)\n󱓟 Heroic (Epic Games)") in
*Steam*) present_terminal omarchy-install-gaming-steam ;; *Steam*) present_terminal omarchy-install-gaming-steam ;;
*RetroArch*) present_terminal omarchy-install-gaming-retroarch ;; *RetroArch*) present_terminal omarchy-install-gaming-retroarch ;;
*Minecraft*) install_and_launch "Minecraft" "minecraft-launcher" "minecraft-launcher" ;; *Minecraft*) install_and_launch "Minecraft" "minecraft-launcher" "minecraft-launcher" ;;
@@ -395,6 +395,7 @@ show_install_gaming_menu() {
*Xbox*) present_terminal omarchy-install-gaming-xbox-controllers ;; *Xbox*) present_terminal omarchy-install-gaming-xbox-controllers ;;
*Lutris*) present_terminal omarchy-install-gaming-lutris ;; *Lutris*) present_terminal omarchy-install-gaming-lutris ;;
*Heroic*) present_terminal omarchy-install-gaming-heroic ;; *Heroic*) present_terminal omarchy-install-gaming-heroic ;;
*Moonlight*) present_terminal omarchy-install-gaming-moonlight ;;
*) show_install_menu ;; *) show_install_menu ;;
esac esac
} }
@@ -484,13 +485,14 @@ show_remove_menu() {
} }
show_remove_gaming_menu() { show_remove_gaming_menu() {
case $(menu "Remove" " Steam\n RetroArch\n󰍳 Minecraft\n󰢹 NVIDIA GeForce NOW\n Xbox Cloud Gaming\n󰖺 Xbox Controller (󰂯)\n Lutris (Battle.net)\n󱓟 Heroic (Epic Games)") in case $(menu "Remove" " Steam\n RetroArch\n󰍳 Minecraft\n󰢹 NVIDIA GeForce NOW\n Xbox Cloud Gaming\n󰖺 Xbox Controller (󰂯)\n󰍹 Moonlight (GameStream)\n Lutris (Battle.net)\n󱓟 Heroic (Epic Games)") in
*Steam*) present_terminal omarchy-remove-gaming-steam ;; *Steam*) present_terminal omarchy-remove-gaming-steam ;;
*RetroArch*) present_terminal omarchy-remove-gaming-retroarch ;; *RetroArch*) present_terminal omarchy-remove-gaming-retroarch ;;
*Minecraft*) present_terminal omarchy-remove-gaming-minecraft ;; *Minecraft*) present_terminal omarchy-remove-gaming-minecraft ;;
*GeForce*) present_terminal omarchy-remove-gaming-geforce-now ;; *GeForce*) present_terminal omarchy-remove-gaming-geforce-now ;;
*"Xbox Cloud"*) present_terminal omarchy-remove-gaming-xbox-cloud ;; *"Xbox Cloud"*) present_terminal omarchy-remove-gaming-xbox-cloud ;;
*Xbox*) present_terminal omarchy-remove-gaming-xbox-controllers ;; *Xbox*) present_terminal omarchy-remove-gaming-xbox-controllers ;;
*Moonlight*) present_terminal omarchy-remove-gaming-moonlight ;;
*Lutris*) present_terminal omarchy-remove-gaming-lutris ;; *Lutris*) present_terminal omarchy-remove-gaming-lutris ;;
*Heroic*) present_terminal omarchy-remove-gaming-heroic ;; *Heroic*) present_terminal omarchy-remove-gaming-heroic ;;
*) show_remove_menu ;; *) show_remove_menu ;;
+15
View File
@@ -0,0 +1,15 @@
#!/bin/bash
# omarchy:summary=Remove Moonlight and its configs and caches.
# omarchy:requires-sudo=true
set -e
omarchy-pkg-drop moonlight-qt
rm -rf \
"$HOME/.config/Moonlight Game Streaming Project" \
"$HOME/.cache/Moonlight Game Streaming Project"
echo ""
echo "Moonlight and its data have been removed."