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

bugfix(ujust): fix suspend video override ujust #2211

Merged
merged 1 commit into from
Jan 30, 2025
Merged
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
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ configure-override-videos ACTION="":
#!/usr/bin/bash
source /usr/lib/ujust/ujust.sh
OPTION={{ ACTION }}
if [ ! -f $HOME/.local/share/Steam/config/uioverrides/movies/bazzite_novideo ]; then
NO_VIDEO="$HOME/.local/share/Steam/config/uioverrides/movies/bazzite_novideo"
if [ ! -f $NO_VIDEO ]; then
VIDEO_STATE="${b}Enabled${n}"
else
VIDEO_STATE="${b}Disabled${n}"
Expand All @@ -165,15 +166,17 @@ configure-override-videos ACTION="":
echo "Videos are: $VIDEO_STATE"
OPTION=$(Choose "Enable Videos" "Disable Videos")
fi
if [[ "$OPTION" =~ ^enable ]]; then
rm $HOME/.local/share/Steam/config/uioverrides/movies/bazzite_novideo
elif [[ "$OPTION" =~ ^disable ]]; then
touch $HOME/.local/share/Steam/config/uioverrides/movies/bazzite_novideo
rm $HOME/.local/share/Steam/config/uioverrides/movies/deck_startup.webm
rm $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation.webm
rm $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation-from-throbber.webm
rm $HOME/.local/share/Steam/config/uioverrides/movies/steam_os_suspend.webm
rm $HOME/.local/share/Steam/config/uioverrides/movies/steam_os_suspend_from_throbber.webm
if [[ "${OPTION,,}" =~ ^enable ]]; then
echo "Removing $NO_VIDEO"
rm -f $NO_VIDEO
elif [[ "${OPTION,,}" =~ ^disable ]]; then
echo "Adding $NO_VIDEO"
touch $NO_VIDEO
rm -f $HOME/.local/share/Steam/config/uioverrides/movies/deck_startup.webm
rm -f $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation.webm
rm -f $HOME/.local/share/Steam/config/uioverrides/movies/deck-suspend-animation-from-throbber.webm
rm -f $HOME/.local/share/Steam/config/uioverrides/movies/steam_os_suspend.webm
rm -f $HOME/.local/share/Steam/config/uioverrides/movies/steam_os_suspend_from_throbber.webm
fi

# Restores the stock virtual keyboard under KDE & GNOME
Expand Down