Skip to content

Commit

Permalink
feat(framework): Use Framework logo in logo menu by default <3
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleGospo committed May 1, 2024
1 parent 906ec90 commit 4a8e70b
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions system_files/desktop/shared/usr/libexec/bazzite-user-setup
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ BAZZITE_CONFIG_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/bazzite"
mkdir -p "$BAZZITE_CONFIG_DIR"

# SCRIPT VERSION
USER_SETUP_VER=32
USER_SETUP_VER=33
USER_SETUP_VER_FILE="$BAZZITE_CONFIG_DIR/version"
USER_SETUP_FEDORA_VER_FILE="$BAZZITE_CONFIG_DIR/fedora_version"
USER_SETUP_IMAGE_VER_FILE=$BAZZITE_CONFIG_DIR/image_name""
Expand Down Expand Up @@ -78,8 +78,8 @@ fi
# Initialize Ptyxis config
# This is intentionally run on both images to ensure a user rebasing from Silverblue to Kinoite
# doesn't get their Ptyxis config wiped out.
echo 'Configuring Ptyxis'
if [[ ! -f "$BAZZITE_CONFIG_DIR/ptyxis-initialized" ]]; then
echo 'Configuring Ptyxis'
if [[ $BASE_IMAGE_NAME =~ "kinoite" ]]; then
dconf load / < /etc/dconf/db/local.d/02-bazzite-kde
fi
Expand Down Expand Up @@ -107,8 +107,14 @@ else
echo 'Running setup for Silverblue on Steam Deck'

if [[ ":Framework:" =~ ":$VEN_ID:" ]]; then
echo 'Enabling automatic power profile extension'
gnome-extensions enable power-profile-switcher@eliapasquali.github.io
if [[ ! -f "$BAZZITE_CONFIG_DIR/framework-initialized" ]]; then
echo 'Enabling automatic power profile extension'
gnome-extensions enable power-profile-switcher@eliapasquali.github.io
echo 'Setting Framework logo menu'
dconf write /org/gnome/shell/extensions/Logo-menu/symbolic-icon true
dconf write /org/gnome/shell/extensions/Logo-menu/menu-button-icon-image 4
touch "$BAZZITE_CONFIG_DIR/framework-initialized"
fi
fi

echo 'Setting up templates'
Expand Down

0 comments on commit 4a8e70b

Please sign in to comment.