Last active
June 12, 2024 16:06
-
-
Save kj-sh604/2cde36ee8a317a09f8be6722d27204ce to your computer and use it in GitHub Desktop.
start-up script to reset GNOME dark mode app color-scheme based on Xfce's settings
This file contains 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
#!/bin/sh | |
theme_name=$(xfconf-query -c xsettings -p /Net/ThemeName) | |
if echo "$theme_name" | grep -- "-dark$" >/dev/null 2>&1; then | |
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark' | |
else | |
gsettings set org.gnome.desktop.interface color-scheme 'prefer-light' | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment