Added deck suspend video css fix script

master
parent db4f8d1d9d
commit 220ec4a624

@ -0,0 +1,20 @@
#!/bin/bash
# presently not working - the file changes, but it looks like the
# steam client is re-verifying them when it boots which instantly
# undoes the changes that we made. Maybe one day there'll be some
# way to persist the change.
stpath='/home/deck/.local/share/Steam/steamui/css'
cssboi='chunk~2dcc5aaf7.css'
if [ ! -f $stpath/$cssboi ]; then
printf "\n%s\n\n" "chunk file '$cssboi' not found, please fix file location in $0. Listing directory $stpath for reference:"
ls $stpath
printf "\n"
exit 1
fi
printf "\n%s\n" "Updating $cssboi..."
sed -i 's/.powermenu_SuspendVideo_s11wN{flex-grow:0;width:300px;height:300px}/.powermenu_SuspendVideo_s11wN{flex-grow:1;width100%;height:100%}/' $stpath/$cssboi
printf "\n%s\n\n" "Done!"
Loading…
Cancel
Save