Skip to content

Instantly share code, notes, and snippets.

@kj-sh604
Last active June 12, 2024 16:06
Show Gist options
  • Save kj-sh604/2cde36ee8a317a09f8be6722d27204ce to your computer and use it in GitHub Desktop.
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
#!/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