aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/set_theme5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/set_theme b/bin/set_theme
index aa42f1a..3b9345e 100755
--- a/bin/set_theme
+++ b/bin/set_theme
@@ -5,6 +5,11 @@ if [[ "$theme" != "dark" ]] && [[ "$theme" != "light" ]]; then
echo "Usage: $0 <light|dark>"; exit 1
fi
+# GTK theme
+if command -v gsettings > /dev/null; then
+ gsettings set org.gnome.desktop.interface color-scheme "prefer-${theme}"
+fi
+
VIS_THEME_PATH=${XDG_CONFIG_HOME:-~/.config}/vis/themes
ln -sf solarized-"$theme".lua "${VIS_THEME_PATH}"/theme.lua