#!/usr/bin/bash # use our branding for steam SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)" SKIP_VIDEOS=false # Check for the no video flag if [ -f $HOME/.local/share/Steam/config/uioverrides/movies/bazzite_novideo ]; then SKIP_VIDEOS=true fi # Check for the Animation Changer plugin, if it exists then they probably don't want us. if [ -f $HOME/homebrew/plugins/SDH-AnimationChanger/main.py ]; then SKIP_VIDEOS=true fi if ! $SKIP_VIDEOS; then # Install Bazzite's Steam Game Mode Startup & Suspend Videos OVRDIR="$HOME/.local/share/Steam/config/uioverrides/movies" mkdir -p $OVRDIR DECK_STARTUP="/usr/share/ublue-os/bazzite/bazzite.webm" DECK_SUSPEND="/usr/share/ublue-os/bazzite/bazzite-suspend.webm" OLED_STARTUP="/usr/share/ublue-os/bazzite/bazzite-oled.webm" OLED_SUSPEND="/usr/share/ublue-os/bazzite/bazzite-suspend-oled.webm" # Check for Galileo model if [[ ":Galileo:" =~ ":$SYS_ID:" ]]; then VIDEO_STARTUP=$OLED_STARTUP VIDEO_SUSPEND=$OLED_SUSPEND else VIDEO_STARTUP=$DECK_STARTUP VIDEO_SUSPEND=$DECK_SUSPEND fi STARTUP_LOCATIONS=( "bigpicture_startup.webm" "deck_startup.webm" "oled_startup.webm" "steam_os_startup.webm" ) SUSPEND_LOCATIONS=( "deck-suspend-animation-from-throbber.webm" "oled-suspend-animation-from-throbber.webm" "steam_os_suspend_from_throbber.webm" "deck-suspend-animation.webm" "oled-suspend-animation.webm" "steam_os_suspend.webm" ) # Copy the startup video to all locations for STARTUP in "${STARTUP_LOCATIONS[@]}"; do LOCATION_STARTUP="$OVRDIR/$STARTUP" if ! cmp --silent $VIDEO_STARTUP $LOCATION_STARTUP; then cp $VIDEO_STARTUP $LOCATION_STARTUP fi done # Copy the suspend video to all locations for SUSPEND in "${SUSPEND_LOCATIONS[@]}"; do LOCATION_SUSPEND="$OVRDIR/$SUSPEND" if ! cmp --silent $VIDEO_SUSPEND $LOCATION_SUSPEND; then cp $VIDEO_SUSPEND $LOCATION_SUSPEND fi done fi