From 22dbd67b564fcef4b06eab0b62f8551f2ad6ef65 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:11 +0100 Subject: feat(sway): cursor theme + GTK4 dark mode via gsettings - seat * xcursor_theme Adwaita 24: announces the cursor via cursor-shape-v1 for Wayland clients and exports XCURSOR_THEME/SIZE to Xwayland, so Xwayland GTK apps no longer fall back to the bitmap X cursor. - exec gsettings color-scheme prefer-dark: GTK4 ignores the settings.ini gtk-application-prefer-dark-theme key (GTK3 only); it reads the gnome color-scheme gsetting. This fixes light-mode GTK4 apps (gnome calculator, nautilus, modern GNOME apps). --- dot_config/sway/config | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dot_config/sway') diff --git a/dot_config/sway/config b/dot_config/sway/config index 966c6ca..405b7b4 100644 --- a/dot_config/sway/config +++ b/dot_config/sway/config @@ -34,6 +34,7 @@ input type:touchpad { # ── Behavior ────────────────────────────────────────────────────────────────── focus_follows_mouse yes seat * hide_cursor 3000 +seat * xcursor_theme Adwaita 24 # ── Output ──────────────────────────────────────────────────────────────────── output * bg #282828 solid_color @@ -155,3 +156,6 @@ exec systemctl --user import-environment DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CU exec dbus-update-activation-environment --systemd DISPLAY WAYLAND_DISPLAY SWAYSOCK XDG_CURRENT_DESKTOP exec "sleep 2 && ~/.config/sway/display-toggle.sh init" exec systemctl --user start sway-session.target + +# GTK4 reads dark mode from gsettings (settings.ini's prefer-dark is GTK3 only). +exec gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' -- cgit v1.3.1