Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(deck): Add OLED video variants, Check for Galileo #1915

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
16 changes: 13 additions & 3 deletions system_files/desktop/shared/usr/bin/bazzite-steam
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

IMAGE_INFO="/usr/share/ublue-os/image-info.json"
IMAGE_NAME=$(jq -r '."image-name"' < $IMAGE_INFO)
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"

DECK_OPTION=""

Expand All @@ -14,18 +15,27 @@ if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" ]]; then
fi
fi

# Check for Galileo model
if [[ ":Galileo:" =~ ":$SYS_ID:" ]]; then
VIDEO_STARTUP="/usr/share/ublue-os/bazzite/bazzite-oled.webm"
VIDEO_SUSPEND="/usr/share/ublue-os/bazzite/bazzite-suspend-oled.webm"
else
VIDEO_STARTUP="/usr/share/ublue-os/bazzite/bazzite.webm"
VIDEO_SUSPEND="/usr/share/ublue-os/bazzite/bazzite-suspend.webm"
fi

# Install Bazzite's Steam Game Mode Startup & Suspend Videos
mkdir -p $HOME/.local/share/Steam/config/uioverrides/movies
if [ ! -f $HOME/.local/share/Steam/config/uioverrides/movies/deck_startup.webm ]; then
cp /usr/share/ublue-os/bazzite/bazzite.webm $HOME/.local/share/Steam/config/uioverrides/movies/deck_startup.webm
cp $VIDEO_STARTUP $HOME/.local/share/Steam/config/uioverrides/movies/deck_startup.webm
fi

if [ ! -f $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation.webm ]; then
cp /usr/share/ublue-os/bazzite/bazzite-suspend.webm $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation.webm
cp $VIDEO_SUSPEND $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation.webm
fi

if [ ! -f $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation-from-throbber.webm ]; then
cp /usr/share/ublue-os/bazzite/bazzite-suspend.webm $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation-from-throbber.webm
cp $VIDEO_SUSPEND $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation-from-throbber.webm
fi

# Required to maintain the Steam update branch between desktop & Steam Game Mode
Expand Down
Binary file not shown.
Binary file not shown.