From e9d684d33004eb9bc15c9cabb2216f75fb2a415d Mon Sep 17 00:00:00 2001 From: Daniel Collins Date: Mon, 19 Sep 2022 22:50:55 -0700 Subject: [PATCH] Set library.css file size to what it was before edit --- randomize_deck_startup.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/randomize_deck_startup.sh b/randomize_deck_startup.sh index dad5e06..87f8c02 100755 --- a/randomize_deck_startup.sh +++ b/randomize_deck_startup.sh @@ -22,6 +22,7 @@ msg2() { DECK_STARTUP_FILE="/home/deck/.steam/steam/steamui/movies/deck_startup.webm" DECK_LIBRARY_CSS_FILE="/home/deck/.steam/steam/steamui/css/library.css" +DECK_LIBRARY_CSS_FILE_SIZE=$(stat -c%s $DECK_LIBRARY_CSS_FILE) DECK_STARTUP_FILE_SIZE=1840847 DECK_STARTUP_STOCK_MD5="4ee82f478313cf74010fc22501b40729" @@ -51,6 +52,7 @@ replace_css_video() { OLD_CSS="video{flex-grow:0;width:300px;height:300px;z-index:10}" NEW_CSS="video{flex-grow:1;width:100%;height:100%;z-index:10} " sed -i.bak -e "s/$OLD_CSS/$NEW_CSS/" $DECK_LIBRARY_CSS_FILE + truncate --size=$DECK_LIBRARY_CSS_FILE_SIZE $DECK_LIBRARY_CSS_FILE } check_backup