diff --git a/just/bluefin-apps.just b/just/bluefin-apps.just index 52981e2..4f56089 100644 --- a/just/bluefin-apps.just +++ b/just/bluefin-apps.just @@ -175,3 +175,53 @@ 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