diff --git a/bin/omarchy-install-gaming-moonlight b/bin/omarchy-install-gaming-moonlight new file mode 100755 index 00000000..ebbd65d2 --- /dev/null +++ b/bin/omarchy-install-gaming-moonlight @@ -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 & diff --git a/bin/omarchy-menu b/bin/omarchy-menu index 8b3153b0..df1c6eaf 100755 --- a/bin/omarchy-menu +++ b/bin/omarchy-menu @@ -386,7 +386,7 @@ show_install_ai_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 ;; *RetroArch*) present_terminal omarchy-install-gaming-retroarch ;; *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 ;; *Lutris*) present_terminal omarchy-install-gaming-lutris ;; *Heroic*) present_terminal omarchy-install-gaming-heroic ;; + *Moonlight*) present_terminal omarchy-install-gaming-moonlight ;; *) show_install_menu ;; esac } @@ -484,13 +485,14 @@ show_remove_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 ;; *RetroArch*) present_terminal omarchy-remove-gaming-retroarch ;; *Minecraft*) present_terminal omarchy-remove-gaming-minecraft ;; *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 ;; + *Moonlight*) present_terminal omarchy-remove-gaming-moonlight ;; *Lutris*) present_terminal omarchy-remove-gaming-lutris ;; *Heroic*) present_terminal omarchy-remove-gaming-heroic ;; *) show_remove_menu ;; diff --git a/bin/omarchy-remove-gaming-moonlight b/bin/omarchy-remove-gaming-moonlight new file mode 100755 index 00000000..9cb951de --- /dev/null +++ b/bin/omarchy-remove-gaming-moonlight @@ -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."