chore: Drop auto-power-profile extension

This commit is contained in:
Kyle Gospodnetich 2024-05-22 09:48:11 -07:00
parent 5129075d78
commit 9fcbaf64b3
2 changed files with 0 additions and 37 deletions

View File

@ -503,7 +503,6 @@ RUN if grep -q "kinoite" <<< "${BASE_IMAGE_NAME}"; then \
gnome-shell-extension-bazzite-menu \
gnome-shell-extension-hotedge \
gnome-shell-extension-caffeine \
gnome-shell-extension-auto-power-profile \
rom-properties-gtk3 \
openssh-askpass && \
rpm-ostree override remove \

View File

@ -141,42 +141,6 @@ configure-watchdog ACTION="":
rpm-ostree kargs $WATCHDOG_KARGS
fi
# Set the default powerprofile to load when the desktop starts
configure-powerprofile ACTION="":
#!/usr/bin/bash
source /usr/lib/ujust/ujust.sh
OPTION={{ ACTION }}
if [ "$OPTION" == "help" ]; then
echo "Usage: ujust configure-powerprofile <option>"
echo " <option>: Specify the quick option to skip the prompt"
echo " Use 'powersave' to select Powersave"
echo " Use 'balanced' to select Balanced"
exit 0
elif [ "$OPTION" == "" ]; then
# Cleanup old method
if [ -f "~/.config/autostart/bazzite-powersave.desktop" ]; then
rm ~/.config/autostart/bazzite-powersave.desktop
fi
# New method from here on
echo "${bold}Power profile configuration${normal}"
echo "This lets you set the default power profile."
echo "We do not recommend changing this from ${b}Balanced${n} if you use this device primarily for gaming!"
echo "If you have any performance or audio related issues..."
echo "${invert}${b}Please test with the default power profile set to Balanced${n} before reporting!"
echo ""
echo "Which power profile do you want to use when the desktop loads?"
OPTION=$(Choose "Powersave" "Balanced")
fi
if [[ "${OPTION,,}" =~ powersave ]]; then
echo "Setting default powerprofile to ${b}Powersave${n}"
sudo sed -iE 's/default=(.+)/default=power-saver/' /etc/tuned/ppd.conf
/usr/libexec/bazzite-powersave
elif [[ "${OPTION,,}" =~ balanced ]]; then
echo "Setting default powerprofile to ${b}Balanced${n}"
sudo sed -iE 's/default=(.+)/default=balanced/' /etc/tuned/ppd.conf
/usr/libexec/bazzite-powersave 0
fi
# Install and configure Decky Loader (https://github.com/SteamDeckHomebrew/decky-loader) and plugins for alternative handhelds
setup-decky ACTION="":
#!/usr/bin/bash