set default settings

This commit is contained in:
2025-04-04 04:02:50 -07:00
parent b5e19a5623
commit 90447884e1
2 changed files with 10 additions and 3 deletions
+7 -3
View File
@@ -19,21 +19,25 @@ sed -i 's/#WaylandEnable=false/WaylandEnable=false/' /etc/gdm3/daemon.conf
touch /var/lib/gdm/run-initial-setup
EOF
# Set default gnome-extensions
mkdir -p "${ROOTFS_DIR}/etc/dconf/db/local.d"
mkdir -p "${ROOTFS_DIR}/etc/dconf/profile"
install -m 644 files/gnome-extensions "${ROOTFS_DIR}/etc/dconf/db/local.d/00-extensions"
on_chroot << EOF
# Create the user profile to link user-db:user and system-db:local
echo "user-db:user" > /etc/dconf/profile/user
echo "system-db:local" >> /etc/dconf/profile/user
EOF
# Set default gnome-extensions
install -m 644 files/gnome-extensions "${ROOTFS_DIR}/etc/dconf/db/local.d/00-extensions"
# Set default Wallpaper
mkdir -p "${ROOTFS_DIR}/usr/local/share/backgrounds"
install -m 644 files/loveimage.png "${ROOTFS_DIR}/usr/local/share/backgrounds/loveimage.png"
install -m 644 files/gnome-background "${ROOTFS_DIR}/etc/dconf/db/local.d/00-background"
# Set default gnome settings
install -m 644 files/gnome-default-settings "${ROOTFS_DIR}/etc/dconf/db/local.d/00-default-settings"
# Run the dconf update as the first user
on_chroot << EOF
SUDO_USER="${FIRST_USER_NAME}" dconf update
@@ -50,4 +54,4 @@ on_chroot << EOF
if [ "${FIRST_USER_ISSYSTEM}" = "false" ]; then
deluser --remove-home --remove-all-files ${FIRST_USER_NAME}
fi
EOF
EOF
@@ -0,0 +1,3 @@
[org/gnome/desktop/interface]
gtk-theme='Adwaita-dark'
color-scheme='prefer-dark'