Skip to content

Instantly share code, notes, and snippets.

@webgtx
Created August 24, 2024 05:42
Show Gist options
  • Save webgtx/a24341ca2357e7095a9822b5945b528d to your computer and use it in GitHub Desktop.
Save webgtx/a24341ca2357e7095a9822b5945b528d to your computer and use it in GitHub Desktop.

How to change prefers-color-scheme via gsettings

I recently encountered an issue where my Google Chrome browser was unable to set the prefers-color-scheme option to dark, even though I had configured it to do so in the gtk settings.ini file. This problem only occurred with Sway; in other desktop environments, Chrome set that option correctly.

The solution to this problem was the following command:

gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment