Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ RUN --mount=type=cache,dst=/var/cache \
ublue-os/packages \
ublue-os/obs-vkcapture \
ycollet/audinux \
pvermeer/sunshine \
che/nerd-fonts; \
do \
echo "Enabling copr: $copr"; \
Expand Down Expand Up @@ -233,6 +234,7 @@ RUN --mount=type=cache,dst=/var/cache \
lato-fonts \
fira-code-fonts \
nerd-fonts \
sunshine \
python3-pip \
libadwaita \
bees \
Expand Down Expand Up @@ -493,6 +495,7 @@ RUN --mount=type=cache,dst=/var/cache \
echo "import \"/usr/share/ublue-os/just/81-bazzite-fixes.just\"" >> /usr/share/ublue-os/justfile && \
echo "import \"/usr/share/ublue-os/just/82-bazzite-apps.just\"" >> /usr/share/ublue-os/justfile && \
echo "import \"/usr/share/ublue-os/just/82-bazzite-beesd.just\"" >> /usr/share/ublue-os/justfile && \
echo "import \"/usr/share/ublue-os/just/82-bazzite-sunshine.just\"" >> /usr/share/ublue-os/justfile && \
echo "import \"/usr/share/ublue-os/just/82-bazzite-waydroid.just\"" >> /usr/share/ublue-os/justfile && \
echo "import \"/usr/share/ublue-os/just/83-bazzite-audio.just\"" >> /usr/share/ublue-os/justfile && \
echo "import \"/usr/share/ublue-os/just/85-bazzite-image.just\"" >> /usr/share/ublue-os/justfile && \
Expand Down Expand Up @@ -540,6 +543,7 @@ RUN --mount=type=cache,dst=/var/cache \
ublue-os/packages \
ublue-os/obs-vkcapture \
ycollet/audinux \
pvermeer/sunshine \
che/nerd-fonts; \
do \
dnf5 -y copr disable $copr; \
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# vim: set ft=make :

# Setup and configure Sunshine Game Streaming host
[group("gaming")]
setup-sunshine ACTION="":
#!/usr/bin/bash
source /usr/lib/ujust/ujust.sh
SERVICE_STATE="$(systemctl is-enabled --user sunshine.service)"
OPTION={{ ACTION }}
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 <option>"
echo " <option>: Specify the quick option to skip the prompt"
echo " Use 'enable' to enable the Sunshine service"
echo " Use 'disable' to disable the Sunshine service"
echo " Use 'portal' to open the Sunshine management portal"
echo " Use 'exit' to exit without making changes"
exit 0
elif [ "$OPTION" == "" ]; then
echo "Service is $SERVICE_STATE"
OPTION=$(Choose "Enable" "Disable" "Open Portal" "Exit")
fi
if [[ "${OPTION,,}" =~ ^enable ]]; then
systemctl enable --user --now sunshine.service
elif [[ "${OPTION,,}" =~ ^(remove|uninstall|disable) ]]; then
systemctl disable --user --now sunshine.service
elif [[ "${OPTION,,}" =~ ^(portal|open) ]]; then
echo "Opening Sunshine management portal..."
xdg-open https://localhost:47990
elif [[ "${OPTION,,}" =~ ^exit ]]; then
echo "Exiting without making changes."
exit 0
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Install]
WantedBy=gnome-session.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[Install]
WantedBy=gnome-session.target