From 4c6ae90598880983123fabdbe3d43236117b0bbd Mon Sep 17 00:00:00 2001 From: frithrah Date: Mon, 16 May 2022 23:28:37 +0100 Subject: [PATCH] Set GTK theme Some apps don't react to automatic theme changes via xfconf-query because they instead monitor the gtk-theme setting - Sublime Text is a good example. This quick fix additionally sets the gtk-theme gsetting to the target theme so these kind of apps will respond to theme changes. --- xfce4-night-mode.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xfce4-night-mode.sh b/xfce4-night-mode.sh index 5661a5e..250bb1c 100755 --- a/xfce4-night-mode.sh +++ b/xfce4-night-mode.sh @@ -71,6 +71,11 @@ function set_theme() show_usage exit 1 fi + + if [ "$2" = "/Net/ThemeName" ] + then + gsettings set org.gnome.desktop.interface gtk-theme "$target_theme" + fi } function get_config()