Skip to content

Commit

Permalink
feat(gnome): Add glib schemas and dconf settings
Browse files Browse the repository at this point in the history
  • Loading branch information
zelikos committed Jun 15, 2024
1 parent 861741d commit 68833cf
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,25 @@ FROM ghcr.io/ublue-os/${SOURCE_IMAGE}${SOURCE_SUFFIX}:${SOURCE_TAG}
COPY packages.sh /tmp/packages.sh

COPY system_files/shared /

# GNOME modifications
COPY system_files/gnome /

# Test zeliblue gschema for errors. If there are no errors, proceed with compiling zeliblue gschema, which includes setting overrides.
RUN mkdir -p /tmp/zeliblue-schema-test && \
find /usr/share/glib-2.0/schemas/ -type f ! -name "*.gschema.override" -exec cp {} /tmp/zeliblue-schema-test/ \; && \
cp /usr/share/glib-2.0/schemas/zz0-zeliblue.gschema.override /tmp/zeliblue-schema-test/ && \
echo "Running error test for zeliblue gschema override. Aborting if failed." && \
glib-compile-schemas --strict /tmp/zeliblue-schema-test && \
echo "Compiling gschema to include zeliblue setting overrides" && \
glib-compile-schemas /usr/share/glib-2.0/schemas &>/dev/null && \
ostree container commit

RUN mkdir -p /var/lib/alternatives && \
/tmp/packages.sh && \
systemctl enable dconf-update.service && \
ostree container commit

## NOTES:
# - /var/lib/alternatives is required to prevent failure with some RPM installs
# - All RUN commands must end with ostree container commit
Expand Down
10 changes: 10 additions & 0 deletions system_files/gnome/usr/lib/systemd/system/dconf-update.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=Update the dconf database onboot
Documentation=https://github.com/coreos/rpm-ostree/issues/1944

[Service]
Type=oneshot
ExecStart=/usr/bin/dconf update

[Install]
WantedBy=multi-user.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
#-------------- LOCKSCREEN MODIFICATIONS --------------#

[org.gnome.desktop.interface:GNOME-Greeter]
font-name="Inter 11"

#-------------- DESKTOP MODIFICATIONS --------------#

[org.gnome.shell]
favorite-apps = ['org.gnome.Nautilus.desktop', 'org.gnome.Epiphany.desktop', 'org.gnome.Calendar.desktop', 'org.gnome.World.PikaBackup.desktop', 'org.gnome.Software.desktop', 'org.gnome.Settings.desktop']
enabled-extensions = ['[email protected]', '[email protected]']

[org.gnome.Console]
shell = ['fish']

[org.gnome.desktop.interface]
clock-format='12h'
clock-show-weekday=true
font-antialiasing="rgba"
font-name="Inter 11"
document-font-name="Inter 11"
monospace-font-name="Hack Nerd Font Mono 10"
gtk-theme="adw-gtk3"

[org.gnome.desktop.wm.keybindings]
move-to-workspace-1 = ['<Alt><Super>Home']
move-to-workspace-last = ['<Alt><Super>End']
move-to-workspace-left = ['<Alt><Super>Left']
move-to-workspace-right = ['<Alt><Super>Right']
switch-to-workspace-left = ['<Super>Left']
switch-to-workspace-right = ['<Super>Right']

[org.gnome.mutter]
center-new-windows=true
check-alive-timeout=uint32 20000

[org.gnome.mutter.keybindings]
toggle-tiled-left = ['<Control><Super>Left']
toggle-tiled-right = ['<Control><Super>Right']

[org.gnome.nautilus.icon-view]
captions = ['size', 'date_modified', 'none']

[org.gnome.nautilus.list-view]
use-tree-view=true

[org.gnome.nautilus.preferences]
show-create-link=true

[org.gnome.software]
packaging-format-preference=['flatpak:flathub-user']

[org.gtk.gtk4.settings.file-chooser]
sort-directories-first=true

[org.gtk.settings.file-chooser]
sort-directories-first=true

0 comments on commit 68833cf

Please sign in to comment.