Skip to content

Commit 4c6ae90

Browse files
frithrahbimlas
authored andcommitted
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.
1 parent 04f1427 commit 4c6ae90

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

xfce4-night-mode.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ function set_theme()
7171
show_usage
7272
exit 1
7373
fi
74+
75+
if [ "$2" = "/Net/ThemeName" ]
76+
then
77+
gsettings set org.gnome.desktop.interface gtk-theme "$target_theme"
78+
fi
7479
}
7580

7681
function get_config()

0 commit comments

Comments
 (0)