Repository navigation
ghostty: set window-theme = ghostty in embedded config - #4098
Merged
Merged
Conversation
purian23
pushed a commit
that referenced
this pull request
Nov 3, 2026
(cherry picked from commit 4430f77)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
When Ghostty runs in single-instance daemon mode, if the colorscheme is changed (Dark mode - Light mode switch, wallpaper switch) makes newly opened windows briefly flash the previous GTK window background color before the terminal surface renders after a theme switch. Setting
window-theme = ghosttyupdates--window-bg-colordirectly from Ghostty'sdankcolorsbackground onSIGUSR2reload so new windows open without flashing.If we want existing installs covered automatically without manually editing
~/.config/ghostty/config,window-theme = ghosttyalso works insidequickshell/matugen/templates/ghostty.conf.)Type of change
Screenshots / video
Checklist
I18n.tr()with translator context, reusing existing terms where possiblemake fmt, added/updated tests,make testpasses, andgo mod tidyis cleanmake lint-qmlwith no new warningsThis bug is actually a native Ghostty GTK daemon behavior: when running under gtk-single-instance=true with the default window-theme = auto, Ghostty updates the terminal surface on SIGUSR2 reload but leaves GTK's --window-bg-color untouched. Setting window-theme = ghostty ensures the GTK window container background updates dynamically to match the terminal palette on launch.
When upstream Ghostty fixes this, I don't think having that config in line breaks anything, the outcome is still preserved.