How does ghostty get the system light/dark setting on Linux? #2980
-
I run Ghostty in a tiling window manager and don't use a desktop environment, so I'm trying to find the option to set the system light/dark setting. I tried gsettings set org.gnome.desktop.interface color-scheme 'prefers-dark' But it doesn't seem to make a difference, as Ghostty will always default to the light colour scheme regardless of what that value is. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
You'll need to double-check as I'm on mobile now but you need to set |
Beta Was this translation helpful? Give feedback.
-
For anyone trying to figure out how to get
Where
Change
|
Beta Was this translation helpful? Give feedback.
Ghostty uses the Freedesktop Settings Portal to listen for theme changes.
ghostty/src/apprt/gtk/App.zig
Lines 1116 to 1134 in 6a1df9f