From e1cb579d3e7feb8398ba5f29cdf44c742fce5cde Mon Sep 17 00:00:00 2001 From: Patrick Orave Date: Wed, 11 Dec 2024 02:02:54 -0600 Subject: [PATCH 1/2] port sunshine config from bazzite --- just/bluefin-apps.just | 52 +++++++++++++++++++ .../system/sunshine-workaround.service | 20 +++++++ 2 files changed, 72 insertions(+) create mode 100644 system_files/shared/usr/lib/systemd/system/sunshine-workaround.service diff --git a/just/bluefin-apps.just b/just/bluefin-apps.just index 52981e27..51428408 100644 --- a/just/bluefin-apps.just +++ b/just/bluefin-apps.just @@ -175,3 +175,55 @@ setup-brew-not-found ACTION="": pkexec rm -f "${FILES_TO_BE_REMOVED[@]}" echo "Brew command-not-found has been ${b}${red}disabled${n}" fi + + +# Enable Sunshine for remote desktop and game streaming | https://app.lizardbyte.dev/Sunshine/ +[group('Apps')] +setup-sunshine ACTION="": + #!/usr/bin/bash + source /usr/lib/ujust/ujust.sh + SUNSHINE_STATE="$(rpm -qa sunshine)" + SERVICE_STATE="$(systemctl is-enabled --user sunshine.service)" + OPTION={{ ACTION }} + if [ "$SUNSHINE_STATE" == "" ]; then + SUNSHINE_STATE="${red}${b}Not Installed${n}" + else + SUNSHINE_STATE="${green}${b}Installed${n}" + fi + if [ "$SERVICE_STATE" == "enabled" ]; then + SERVICE_STATE="${green}${b}Enabled${n}" + else + SERVICE_STATE="${red}${b}Disabled${n}" + fi + if [ "$OPTION" == "help" ]; then + echo "Usage: ujust setup-sunshine