Why not just reapply the theme? personalisation_app also comes with a command line counterpart. Otherwise, just read the source of any GTK+ theme switching app: Considering you're dealing with windows, it's unlikely D-Bus will play a part, look at X's Atoms, Properties and stuff. Perhaps http://code.google.com/p/gtk-theme-s...rc/utils.c#160 may be enough