feat(legion): Automatically use Legion logo on LGO in Logo Menu

This commit is contained in:
Kyle Gospodnetich 2024-06-29 23:29:34 -07:00
parent 28163f6a7c
commit 97f4ef8dc3

View File

@ -10,6 +10,7 @@ IMAGE_NAME=$(jq -r '."image-name"' < $IMAGE_INFO)
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)
FEDORA_VERSION=$(jq -r '."fedora-version"' < $IMAGE_INFO)
SYS_ID="$(/usr/libexec/hwsupport/sysid)"
VEN_ID="$(cat /sys/devices/virtual/dmi/id/chassis_vendor)"
# INIT
@ -110,6 +111,12 @@ else
fi
fi
if [[ ":83E1:" =~ ":$SYS_ID:" ]]; then
echo 'Setting Legion logo menu'
dconf write /org/gnome/shell/extensions/Logo-menu/symbolic-icon false
dconf write /org/gnome/shell/extensions/Logo-menu/menu-button-icon-image 31
fi
echo 'Setting up templates'
TEMPLATES_DIR=$(/usr/bin/xdg-user-dir TEMPLATES || true)
if [[ -z "$TEMPLATES_DIR" || "$TEMPLATES_DIR" == "$HOME" ]]; then