Set dark mode

This commit is contained in:
2026-07-09 17:21:00 +02:00
parent a3d98a0522
commit c7c8352e89
5 changed files with 122 additions and 4 deletions
+7 -2
View File
@@ -14,12 +14,17 @@ xdg-mime default org.gnome.Nautilus.desktop inode/directory
# session nothing sets these, so libadwaita/GNOME apps (Nautilus, …) would fall
# back to generic Sans. gtk-*/settings.ini covers the GTK toolkit font;
# gsettings covers the document/monospace fonts read via dconf/the portal.
# color-scheme=prefer-dark is the authoritative dark-mode signal: GTK4/libadwaita
# apps read it directly, and xdg-desktop-portal reports it via the appearance API
# (so GTK3 and Qt apps that ask the portal go dark too). See gtk-*/settings.ini
# for the GTK toolkit dark toggle and ~/.config/kdeglobals for KDE apps.
if command -v gsettings >/dev/null 2>&1; then
gsettings set org.gnome.desktop.interface font-name 'Adwaita Sans 11' \
&& gsettings set org.gnome.desktop.interface document-font-name 'Adwaita Sans 11' \
&& gsettings set org.gnome.desktop.interface monospace-font-name 'SF Mono 11' \
&& info "interface fonts → Adwaita Sans / SF Mono" \
|| echo " skip: could not set gsettings interface fonts"
&& gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' \
&& info "interface fonts → Adwaita Sans / SF Mono, color-scheme → prefer-dark" \
|| echo " skip: could not set gsettings interface prefs"
fi
# User services that ship as ~/.config/systemd/user units (from dotfiles).