mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-02-21 09:39:49 +00:00
feat(gnome): Add bazzite-menu extension to desktop images, modify defaults to show gamemode option on deck builds.
This commit is contained in:
parent
0391221c8b
commit
5831b1dac0
@ -221,6 +221,7 @@ RUN if grep -q "kinoite" <<< "${BASE_IMAGE_NAME}"; then \
|
|||||||
gnome-shell-extension-blur-my-shell \
|
gnome-shell-extension-blur-my-shell \
|
||||||
gnome-shell-extension-hanabi \
|
gnome-shell-extension-hanabi \
|
||||||
gnome-shell-extension-gamerzilla \
|
gnome-shell-extension-gamerzilla \
|
||||||
|
gnome-shell-extension-bazzite-menu \
|
||||||
rom-properties-gtk3 \
|
rom-properties-gtk3 \
|
||||||
openssh-askpass && \
|
openssh-askpass && \
|
||||||
rpm-ostree override remove \
|
rpm-ostree override remove \
|
||||||
@ -372,10 +373,12 @@ RUN if grep -q "kinoite" <<< "${BASE_IMAGE_NAME}"; then \
|
|||||||
; else \
|
; else \
|
||||||
rpm-ostree install \
|
rpm-ostree install \
|
||||||
steamdeck-gnome-presets \
|
steamdeck-gnome-presets \
|
||||||
gnome-shell-extension-bazzite-menu \
|
|
||||||
gnome-shell-extension-caribou-blocker \
|
gnome-shell-extension-caribou-blocker \
|
||||||
sddm && \
|
sddm && \
|
||||||
wget https://raw.githubusercontent.com/doitsujin/dxvk/master/dxvk.conf -O /usr/etc/dxvk-example.conf \
|
wget https://raw.githubusercontent.com/doitsujin/dxvk/master/dxvk.conf -O /usr/etc/dxvk-example.conf && \
|
||||||
|
sed -i '/show-gamemode/{n;s/false/true/}' /usr/share/gnome-shell/extensions/logomenu@aryan_k/schemas/org.gnome.shell.extensions.logo-menu.gschema.xml && \
|
||||||
|
rm -f /usr/share/gnome-shell/extensions/logomenu@aryan_k/schemas/gschemas.compiled && \
|
||||||
|
glib-compile-schemas /usr/share/gnome-shell/extensions/logomenu@aryan_k/schemas/ \
|
||||||
; fi
|
; fi
|
||||||
|
|
||||||
# Install new packages
|
# Install new packages
|
||||||
|
@ -2,8 +2,26 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
|
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
|
||||||
|
IMAGE_INFO="/usr/share/ublue-os/image-info.json"
|
||||||
|
BASE_IMAGE_NAME=$(jq -r '."base-image-name"' < $IMAGE_INFO)
|
||||||
|
|
||||||
|
if [[ $BASE_IMAGE_NAME =~ "silverblue" && "$XDG_SESSION_TYPE" == "wayland" ]]; then
|
||||||
|
XRANDR_FUNC="gnome-randr modify"
|
||||||
|
else
|
||||||
|
XRANDR_FUNC="xrandr --output"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Steam Deck
|
||||||
if [[ ":Jupiter:" =~ ":$SYS_ID:" || ":Galileo:" =~ ":$SYS_ID:" ]]; then
|
if [[ ":Jupiter:" =~ ":$SYS_ID:" || ":Galileo:" =~ ":$SYS_ID:" ]]; then
|
||||||
# Rotate the builtin screen every time so it's the right way around.
|
# Rotate the builtin screen every time so it's the right way around.
|
||||||
xrandr --output "eDP" --rotate "right"
|
if [[ "$XDG_SESSION_TYPE" == "wayland" ]]
|
||||||
|
$XRANDR_FUNC "eDP" --rotate "normal"
|
||||||
|
else
|
||||||
|
$XRANDR_FUNC "eDP" --rotate "right"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Lenovo Legion Go
|
||||||
|
if [[ ":83E1:" =~ ":$SYS_ID:" ]]; then
|
||||||
|
$XRANDR_FUNC "eDP" --rotate "normal"
|
||||||
|
fi
|
@ -7,7 +7,7 @@ FEDORA_VERSION=$(jq -r '."fedora-version"' < $IMAGE_INFO)
|
|||||||
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
|
SYS_ID="$(cat /sys/devices/virtual/dmi/id/product_name)"
|
||||||
|
|
||||||
# SCRIPT VERSION
|
# SCRIPT VERSION
|
||||||
USER_SETUP_VER=14
|
USER_SETUP_VER=15
|
||||||
USER_SETUP_VER_FILE="$HOME/.bazzite-configured"
|
USER_SETUP_VER_FILE="$HOME/.bazzite-configured"
|
||||||
USER_SETUP_VER_RAN=$(cat $USER_SETUP_VER_FILE)
|
USER_SETUP_VER_RAN=$(cat $USER_SETUP_VER_FILE)
|
||||||
USER_SETUP_FEDORA_VER_FILE="$HOME/.bazzite-configured-fedora-version"
|
USER_SETUP_FEDORA_VER_FILE="$HOME/.bazzite-configured-fedora-version"
|
||||||
@ -57,6 +57,7 @@ else
|
|||||||
echo 'Enabling GNOME extensions'
|
echo 'Enabling GNOME extensions'
|
||||||
gnome-extensions enable s76-scheduler@mattjakeman.com
|
gnome-extensions enable s76-scheduler@mattjakeman.com
|
||||||
gnome-extensions enable gsconnect@andyholmes.github.io
|
gnome-extensions enable gsconnect@andyholmes.github.io
|
||||||
|
gnome-extensions enable logomenu@aryan_k
|
||||||
gnome-extensions disable background-logo@fedorahosted.org
|
gnome-extensions disable background-logo@fedorahosted.org
|
||||||
|
|
||||||
echo 'Adjusting Nautilus settings'
|
echo 'Adjusting Nautilus settings'
|
||||||
@ -76,14 +77,6 @@ else
|
|||||||
if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegame" ]]; then
|
if [[ $IMAGE_NAME =~ "deck" || $IMAGE_NAME =~ "ally" || $IMAGE_NAME =~ "framegame" ]]; then
|
||||||
echo 'Running setup for Silverblue on Steam Deck'
|
echo 'Running setup for Silverblue on Steam Deck'
|
||||||
|
|
||||||
if [ ${FEDORA_VERSION} -gt 38 ]; then
|
|
||||||
echo 'Enabling Bazzite Logo Menu fork'
|
|
||||||
gnome-extensions enable logomenu@aryan_k
|
|
||||||
else
|
|
||||||
echo 'Enabling Bazzite Tofu Menu fork'
|
|
||||||
gnome-extensions enable tofumenu@tofu
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo 'Disabling GNOME keyboard'
|
echo 'Disabling GNOME keyboard'
|
||||||
gsettings set org.gnome.desktop.interface toolkit-accessibility false
|
gsettings set org.gnome.desktop.interface toolkit-accessibility false
|
||||||
gnome-extensions enable block-caribou-36@lxylxy123456.ercli.dev
|
gnome-extensions enable block-caribou-36@lxylxy123456.ercli.dev
|
||||||
|
Loading…
x
Reference in New Issue
Block a user